Public Types | Public Member Functions | Static Public Member Functions | List of all members
duration_caster< type > Class Template Reference

#include <chrono.h>

Public Types

using days = std::chrono::duration< int_least32_t, std::ratio< 86400 > >
 
using period = typename type::period
 
using rep = typename type::rep
 

Public Member Functions

bool load (handle src, bool)
 
 PYBIND11_TYPE_CASTER (type, const_name("datetime.timedelta"))
 

Static Public Member Functions

static handle cast (const type &src, return_value_policy, handle)
 
static const std::chrono::duration< rep, period > & get_duration (const std::chrono::duration< rep, period > &src)
 
template<typename Clock >
static std::chrono::duration< rep, periodget_duration (const std::chrono::time_point< Clock, std::chrono::duration< rep, period >> &src)
 

Detailed Description

template<typename type>
class duration_caster< type >

Definition at line 25 of file chrono.h.

Member Typedef Documentation

◆ days

template<typename type >
using duration_caster< type >::days = std::chrono::duration<int_least32_t, std::ratio<86400> >

Definition at line 31 of file chrono.h.

◆ period

template<typename type >
using duration_caster< type >::period = typename type::period

Definition at line 28 of file chrono.h.

◆ rep

template<typename type >
using duration_caster< type >::rep = typename type::rep

Definition at line 27 of file chrono.h.

Member Function Documentation

◆ cast()

template<typename type >
static handle duration_caster< type >::cast ( const type src,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 74 of file chrono.h.

◆ get_duration() [1/2]

template<typename type >
static const std::chrono::duration<rep, period>& duration_caster< type >::get_duration ( const std::chrono::duration< rep, period > &  src)
inlinestatic

Definition at line 63 of file chrono.h.

◆ get_duration() [2/2]

template<typename type >
template<typename Clock >
static std::chrono::duration<rep, period> duration_caster< type >::get_duration ( const std::chrono::time_point< Clock, std::chrono::duration< rep, period >> &  src)
inlinestatic

Definition at line 70 of file chrono.h.

◆ load()

template<typename type >
bool duration_caster< type >::load ( handle  src,
bool   
)
inline

Definition at line 33 of file chrono.h.

◆ PYBIND11_TYPE_CASTER()

template<typename type >
duration_caster< type >::PYBIND11_TYPE_CASTER ( type  ,
const_name("datetime.timedelta")   
)

The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:01