adevs
Public Member Functions | Static Public Member Functions | Public Attributes
adevs::Time Struct Reference

#include <adevs_time.h>

List of all members.

Public Member Functions

 Time (T t=0, 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

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


Member Function Documentation

const Time& adevs::Time::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: