risc::sg::Time Class Reference

This class represents timing in discrete event simulation. More...

#include <time.h>

List of all members.

Public Member Functions

 Time ()
 This constructor initializes the time values with (0,0).
 Time (long long time_units, int delta_count)
 This constructor initializes the time values with user custom values.
 Time (bool infinite)
 This constructor should be used to set the infinite flag.
bool operator< (const Time &ohs)
bool operator> (const Time &ohs)
bool operator<= (const Time &ohs)
bool operator>= (const Time &ohs)
bool operator== (const Time &ohs)
bool operator!= (const Time &ohs)
Time operator+ (const Time &ohs)
Timeoperator+= (const Time &ohs)
bool one_delta_cycle_ahead (const Time &ohs)
 The function checks if the difference between this and the given time stamp is exactly one delta cycle.

Public Attributes

int delta_count_
long long time_units_
bool infinite_
 This flag is set to describe an infinite amount of time.

Detailed Description

This class represents timing in discrete event simulation.


Constructor & Destructor Documentation

risc::sg::Time::Time (  ) 

This constructor initializes the time values with (0,0).

Time

risc::sg::Time::Time ( long long  time_units,
int  delta_count 
)

This constructor initializes the time values with user custom values.

Time

risc::sg::Time::Time ( bool  infinite  ) 

This constructor should be used to set the infinite flag.

Time


Member Function Documentation

bool risc::sg::Time::one_delta_cycle_ahead ( const Time ohs  ) 

The function checks if the difference between this and the given time stamp is exactly one delta cycle.

one_delta_cycle_ahead

bool risc::sg::Time::operator!= ( const Time ohs  ) 
risc::sg::Time risc::sg::Time::operator+ ( const Time ohs  ) 
risc::sg::Time & risc::sg::Time::operator+= ( const Time ohs  ) 
bool risc::sg::Time::operator< ( const Time ohs  ) 
bool risc::sg::Time::operator<= ( const Time ohs  ) 
bool risc::sg::Time::operator== ( const Time ohs  ) 
bool risc::sg::Time::operator> ( const Time ohs  ) 
bool risc::sg::Time::operator>= ( const Time ohs  ) 

Member Data Documentation

This flag is set to describe an infinite amount of time.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 29 Oct 2015 by  doxygen 1.6.1