Parallel Analog Ensemble
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
Time Class Reference

#include <Times.h>

Public Member Functions

 Time ()
 
 Time (std::size_t)
 
 Time (const std::string &str, bool iso_string=false)
 
 Time (const std::string &str, const std::string &origin, bool iso_string=false)
 
 Time (const Time &)
 
virtual ~Time ()
 
Timeoperator= (const Time &rhs)
 
Timeoperator= (std::size_t rhs)
 
Time operator+ (const Time &rhs) const
 
bool operator== (const Time &rhs) const
 
bool operator< (const Time &) const
 
bool operator> (const Time &) const
 
bool operator<= (const Time &) const
 
bool operator>= (const Time &) const
 
std::string toString () const
 
void print (std::ostream &os) const
 

Public Attributes

std::size_t timestamp
 

Static Public Attributes

static const std::string _unit = "seconds"
 
static const std::string _origin = "1970-01-01 00:00:00"
 

Friends

std::ostream & operator<< (std::ostream &os, Time const &obj)
 

Constructor & Destructor Documentation

◆ Time() [1/5]

Time::Time ( )

◆ Time() [2/5]

Time::Time ( std::size_t  )

◆ Time() [3/5]

Time::Time ( const std::string &  str,
bool  iso_string = false 
)

◆ Time() [4/5]

Time::Time ( const std::string &  str,
const std::string &  origin,
bool  iso_string = false 
)

◆ Time() [5/5]

Time::Time ( const Time rhs)

◆ ~Time()

Time::~Time ( )
virtual

Member Function Documentation

◆ operator+()

Time Time::operator+ ( const Time rhs) const

◆ operator<()

bool Time::operator< ( const Time rhs) const

◆ operator<=()

bool Time::operator<= ( const Time rhs) const

◆ operator=() [1/2]

Time & Time::operator= ( const Time rhs)

◆ operator=() [2/2]

Time & Time::operator= ( std::size_t  rhs)

◆ operator==()

bool Time::operator== ( const Time rhs) const

◆ operator>()

bool Time::operator> ( const Time rhs) const

◆ operator>=()

bool Time::operator>= ( const Time rhs) const

◆ print()

void Time::print ( std::ostream &  os) const

◆ toString()

string Time::toString ( ) const

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
Time const &  obj 
)
friend

Member Data Documentation

◆ _origin

const string Time::_origin = "1970-01-01 00:00:00"
static

Origin of all times. This can be changed only during compile-time.

◆ _unit

const string Time::_unit = "seconds"
static

For now, Time only supports seconds. Support for other units will be future features.

◆ timestamp

std::size_t Time::timestamp

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