Simple++
Powerfull and lightning fast C++ Library
Public Member Functions | Static Public Member Functions | List of all members
Time::TimePoint Class Reference

Class representing a precise moment in the time. More...

#include <TimePoint.h>

Public Member Functions

 TimePoint ()
 create an uninitialized TimePoint. See getTime() of getting the timepoint of the current time. More...
 
 TimePoint (const TimeT &timeT)
 Create a TimePoint from an old school time_t object. More...
 
void setNow ()
 set this object to store the current moment. More...
 
bool operator== (const TimePoint &timePoint) const
 
bool operator!= (const TimePoint &timePoint) const
 
bool operator>= (const TimePoint &timePoint) const
 
bool operator<= (const TimePoint &timePoint) const
 
bool operator< (const TimePoint &timePoint) const
 
bool operator> (const TimePoint &timePoint) const
 
TimePointoperator= (const TimePoint &timePoint)
 
TimePointoperator= (const TimeT &timeT)
 
template<class ratio >
TimePointoperator+= (const Duration< ratio > &d)
 
template<class ratio >
TimePointoperator-= (const Duration< ratio > &d)
 
TimePointoperator+= (TimeT t)
 
TimePointoperator-= (TimeT t)
 
 ~TimePoint ()
 
void setTime (const TimeT &t)
 
const TimeTgetTime () const
 

Static Public Member Functions

static TimePoint getNow ()
 

Detailed Description

Class representing a precise moment in the time.

Constructor & Destructor Documentation

Time::TimePoint::TimePoint ( )

create an uninitialized TimePoint. See getTime() of getting the timepoint of the current time.

Time::TimePoint::TimePoint ( const TimeT timeT)

Create a TimePoint from an old school time_t object.

Time::TimePoint::~TimePoint ( )

Member Function Documentation

TimePoint Time::TimePoint::getNow ( )
static
const TimeT & Time::TimePoint::getTime ( ) const
bool Time::TimePoint::operator!= ( const TimePoint timePoint) const
template<class ratio >
TimePoint & Time::TimePoint::operator+= ( const Duration< ratio > &  d)
TimePoint & Time::TimePoint::operator+= ( TimeT  t)
template<class ratio >
TimePoint & Time::TimePoint::operator-= ( const Duration< ratio > &  d)
TimePoint & Time::TimePoint::operator-= ( TimeT  t)
bool Time::TimePoint::operator< ( const TimePoint timePoint) const
bool Time::TimePoint::operator<= ( const TimePoint timePoint) const
TimePoint & Time::TimePoint::operator= ( const TimePoint timePoint)
TimePoint & Time::TimePoint::operator= ( const TimeT timeT)
bool Time::TimePoint::operator== ( const TimePoint timePoint) const
bool Time::TimePoint::operator> ( const TimePoint timePoint) const
bool Time::TimePoint::operator>= ( const TimePoint timePoint) const
void Time::TimePoint::setNow ( )

set this object to store the current moment.

void Time::TimePoint::setTime ( const TimeT t)

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