adevs
Public Member Functions | Static Public Attributes | List of all members
adevs::double_fcmp Class Reference

#include <adevs_time.h>

Public Member Functions

 double_fcmp (double rhs=0)
 
const double_fcmpoperator= (const double_fcmp &rhs)
 
const double_fcmpoperator= (double rhs)
 
 operator double ()
 
bool operator< (double rhs) const
 
bool operator< (const double_fcmp &rhs) const
 
bool operator<= (const double_fcmp &rhs) const
 
bool operator> (const double_fcmp &rhs) const
 
bool operator>= (const double_fcmp &rhs) const
 
bool operator== (double rhs) const
 
bool operator== (const double_fcmp &rhs) const
 

Static Public Attributes

static double epsilon
 

Detailed Description

This is an alternative double that may be used for the simulation clock (i.e., as the template parameter T for models and simulators). It uses the fcmp function to check for equality instead of the default equality operator. Information on the fcmp function may be found at http://fcmp.sourceforge.net/

Member Data Documentation

double adevs::double_fcmp::epsilon
static

The user must instantiate this static variable and initialize as required by the fcmp function.


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