#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 Time & | operator= (const Time &t2) |
| Assignment operator. | |
| bool | operator< (T t2) const |
| Comparing with a T compares the real field. | |
| const Time & | operator= (T t2) |
| Time | operator+ (const Time &t2) const |
| Advance operator (this is not commutative or associative!). | |
| const Time & | operator+= (const Time &t2) |
| Advance and assign. | |
| T | 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 | t |
| unsigned int | c |
This is the super dense simulation clock that is used by the parallel simulator to properly manage simultaneous events.
| const Time& adevs::Time< T >::operator= | ( | T | t2 | ) | [inline] |
Assigning a T sets the real field to the T and the integer field to zero
1.6.1