STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
chrono::time_point< _Clock, _Duration > Class Template Reference

Public Types

typedef _Clock clock
 
typedef _Duration duration
 
typedef _Duration::rep rep
 
typedef _Duration::period period
 

Public Member Functions

constexpr time_point ()
 
constexpr time_point (const _Duration &_Other)
 
template<class _Duration2 , class = typename enable_if<is_convertible<_Duration2, _Duration>::value, void>::type>
constexpr time_point (const time_point< _Clock, _Duration2 > &_Tp)
 
constexpr _Duration time_since_epoch () const
 
time_pointoperator+= (const _Duration &_Dur)
 
time_pointoperator-= (const _Duration &_Dur)
 

Static Public Member Functions

static constexpr time_point() min ()
 
static constexpr time_point() max ()
 

Private Attributes

_Duration _MyDur
 

Member Typedef Documentation

template<class _Clock, class _Duration = typename _Clock::duration>
typedef _Clock chrono::time_point< _Clock, _Duration >::clock
template<class _Clock, class _Duration = typename _Clock::duration>
typedef _Duration chrono::time_point< _Clock, _Duration >::duration
template<class _Clock, class _Duration = typename _Clock::duration>
typedef _Duration::period chrono::time_point< _Clock, _Duration >::period
template<class _Clock, class _Duration = typename _Clock::duration>
typedef _Duration::rep chrono::time_point< _Clock, _Duration >::rep

Constructor & Destructor Documentation

template<class _Clock, class _Duration = typename _Clock::duration>
constexpr chrono::time_point< _Clock, _Duration >::time_point ( )
inline
238  : _MyDur(_Duration::zero())
239  { // construct with value epoch
240  }
_Duration _MyDur
Definition: chrono:283
template<class _Clock, class _Duration = typename _Clock::duration>
constexpr chrono::time_point< _Clock, _Duration >::time_point ( const _Duration &  _Other)
inlineexplicit
243  : _MyDur(_Other)
244  { // construct from a duration
245  }
_Duration _MyDur
Definition: chrono:283
template<class _Clock, class _Duration = typename _Clock::duration>
template<class _Duration2 , class = typename enable_if<is_convertible<_Duration2, _Duration>::value, void>::type>
constexpr chrono::time_point< _Clock, _Duration >::time_point ( const time_point< _Clock, _Duration2 > &  _Tp)
inline
252  : _MyDur(_Tp.time_since_epoch())
253  { // construct from another duration
254  }
_Duration _MyDur
Definition: chrono:283

Member Function Documentation

template<class _Clock, class _Duration = typename _Clock::duration>
static constexpr time_point() chrono::time_point< _Clock, _Duration >::max ( )
inlinestatic
278  { // get maximum time point
279  return (time_point((_Duration::max)()));
280  }
constexpr time_point()
Definition: chrono:237
constexpr const _Ty &() max(const _Ty &_Left, const _Ty &_Right, _Pr _Pred) _NOEXCEPT_OP(_NOEXCEPT_OP(_DEBUG_LT_PRED(_Pred
template<class _Clock, class _Duration = typename _Clock::duration>
static constexpr time_point() chrono::time_point< _Clock, _Duration >::min ( )
inlinestatic
274  { // get minimum time point
275  return (time_point((_Duration::min)()));
276  }
constexpr time_point()
Definition: chrono:237
constexpr const _Ty &() min(const _Ty &_Left, const _Ty &_Right, _Pr _Pred) _NOEXCEPT_OP(_NOEXCEPT_OP(_DEBUG_LT_PRED(_Pred
template<class _Clock, class _Duration = typename _Clock::duration>
time_point& chrono::time_point< _Clock, _Duration >::operator+= ( const _Duration &  _Dur)
inline
262  { // increment by duration
263  _MyDur += _Dur;
264  return (*this);
265  }
_Duration _MyDur
Definition: chrono:283
template<class _Clock, class _Duration = typename _Clock::duration>
time_point& chrono::time_point< _Clock, _Duration >::operator-= ( const _Duration &  _Dur)
inline
268  { // decrement by duration
269  _MyDur -= _Dur;
270  return (*this);
271  }
_Duration _MyDur
Definition: chrono:283
template<class _Clock, class _Duration = typename _Clock::duration>
constexpr _Duration chrono::time_point< _Clock, _Duration >::time_since_epoch ( ) const
inline
257  { // get duration from epoch
258  return (_MyDur);
259  }
_Duration _MyDur
Definition: chrono:283

Member Data Documentation

template<class _Clock, class _Duration = typename _Clock::duration>
_Duration chrono::time_point< _Clock, _Duration >::_MyDur
private

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