ns3::TimeTests Class Reference

Inheritance diagram for ns3::TimeTests:
Inheritance graph
[legend]
Collaboration diagram for ns3::TimeTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimeTests ()
virtual ~TimeTests ()
virtual bool RunTests (void)
void CheckTimeSec (std::string test_id, double actual, double expected, bool *flag, double precMultFactor=1, bool verbose=false)
void CheckTime (std::string test_id, int64_t actual, int64_t expected, bool *flag, double precMultFactor=1, bool verbose=false)
void CheckOperations (Time t0, Time t1, bool *ok, bool verbose=false)
void CheckPrecision (TimeStepPrecision::precision_t prec, uint64_t val, bool *ok, bool verbose=false)
void CheckConversions (uint64_t tval, bool *ok, bool verbose=false)
void CheckOld (bool *ok)

Detailed Description

Definition at line 372 of file time.cc.


Constructor & Destructor Documentation

ns3::TimeTests::TimeTests (  ) 

Definition at line 420 of file time.cc.

ns3::TimeTests::~TimeTests (  )  [virtual]

Definition at line 423 of file time.cc.


Member Function Documentation

void ns3::TimeTests::CheckConversions ( uint64_t  tval,
bool *  ok,
bool  verbose = false 
)
void ns3::TimeTests::CheckOld ( bool *  ok  ) 
void ns3::TimeTests::CheckOperations ( Time  t0,
Time  t1,
bool *  ok,
bool  verbose = false 
)
void ns3::TimeTests::CheckPrecision ( TimeStepPrecision::precision_t  prec,
uint64_t  val,
bool *  ok,
bool  verbose = false 
)

Definition at line 769 of file time.cc.

References ns3::TimeStepPrecision::Get(), and ns3::Config::Set().

Referenced by RunTests().

void ns3::TimeTests::CheckTime ( std::string  test_id,
int64_t  actual,
int64_t  expected,
bool *  flag,
double  precMultFactor = 1,
bool  verbose = false 
)

Definition at line 831 of file time.cc.

References ns3::TimeStepPrecision::Get().

Referenced by CheckConversions(), and CheckOld().

void ns3::TimeTests::CheckTimeSec ( std::string  test_id,
double  actual,
double  expected,
bool *  flag,
double  precMultFactor = 1,
bool  verbose = false 
)

Definition at line 806 of file time.cc.

References ns3::TimeStepPrecision::Get().

Referenced by CheckConversions(), CheckOld(), and CheckOperations().

bool ns3::TimeTests::RunTests ( void   )  [virtual]

The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:12:17 2009 for NS-3 by  doxygen 1.6.3