adevs
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
adevs::Time< T > Struct Template Reference

#include <adevs_time.h>

Public Member Functions

 Time (T t=adevs_zero< T >(), unsigned int c=0)
 Constructor. Default time is (0,0).
 
 Time (const Time &t2)
 Copy constructor.
 
const Timeoperator= (const Time &t2)
 Assignment operator.
 
bool operator< (T t2) const
 Comparing with a T compares the real field.
 
const Timeoperator= (T t2)
 
Time operator+ (const Time &t2) const
 Advance operator (this is not commutative or associative!)
 
const Timeoperator+= (const Time &t2)
 Advance and assign.
 
operator- (T t2) const
 Subtract a real number (used to get the elapsed time)
 
bool operator== (const Time &t2) const
 Equivalence.
 
bool operator!= (const Time &t2) const
 Not equal.
 
bool operator< (const Time &t2) const
 Order by t then by c.
 
bool operator<= (const Time &t2) const
 
bool operator> (const Time &t2) const
 
bool operator>= (const Time &t2) const
 

Static Public Member Functions

static adevs::Time< T > Inf ()
 Value for infinity.
 

Public Attributes

t
 
unsigned int c
 

Detailed Description

template<class T = double>
struct adevs::Time< T >

This is the super dense simulation clock that is used by the parallel simulator to properly manage simultaneous events.

Member Function Documentation

template<class T = double>
const Time& adevs::Time< T >::operator= ( t2)
inline

Assigning a T sets the real field to the T and the integer field to zero


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