AdvanceInfo.h

Go to the documentation of this file.
00001 #ifndef ADVANCEINFO_H_
00002 #define ADVANCEINFO_H_
00003 
00004 #include "SimTime.h"
00005 
00006 class SimNetwork;
00007 class SingleThreadSimEngine;
00008 
00009 class AdvanceInfo {
00010     public:
00011         AdvanceInfo( double dt = 1e-4, double t = 0.0 ) : dt( Time::sec( dt ) ), t( Time::sec( t ) ), net( NULL ), eng( NULL ) {}
00012         ;
00013         AdvanceInfo( Time const &dt, Time const& t ) :
00014         dt( dt ), t( t ), net( NULL ), eng( NULL ) {}
00015         ;
00016         AdvanceInfo( Time const &dt) :
00017         dt( dt ), t( Time::sec( 0.0 ) ), net( NULL ), eng( NULL ) {}
00018         ;
00019 
00020         AdvanceInfo( SimNetwork *net, SingleThreadSimEngine *eng );
00021 
00022         AdvanceInfo & operator ++() {
00023             t += dt;
00024             return *this;
00025         };
00026 
00027         Time dt;
00028         Time t;
00029         SimNetwork *net;
00030         SingleThreadSimEngine *eng;
00031 };
00032 
00033 typedef AdvanceInfo InitializeInfo;
00034 
00035 
00036 #endif /*ADVANCEINFO_H_*/

Generated on Wed Jul 9 16:34:37 2008 for PCSIM by  doxygen 1.5.5