Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::Timer Class Reference

#include <Timer.h>

Inheritance diagram for RobotFlow::Timer:

Inheritance graph
[legend]
Collaboration diagram for RobotFlow::Timer:

Collaboration graph
[legend]

Public Member Functions

 Timer (long msec)
 ~Timer ()
void start ()
void stop ()
bool ready ()
void reset (long msec)
virtual void printOn (std::ostream &out=std::cout) const
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in=std::cin)
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Protected Attributes

AtomicCounter ref_count

Private Member Functions

void lock ()
void unlock ()

Private Attributes

pthread_t m_thread
pthread_mutex_t m_mutex
long m_remaining_time

Friends

void * timer_thread (void *timerPtr)
friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::Timer::Timer long  msec  )  [inline]
 

RobotFlow::Timer::~Timer  )  [inline]
 


Member Function Documentation

void RobotFlow::Timer::lock  )  [inline, private]
 

virtual void RobotFlow::Timer::printOn std::ostream &  out = std::cout  )  const [inline, virtual]
 

Implements FD::Object.

bool RobotFlow::Timer::ready  )  [inline]
 

void RobotFlow::Timer::reset long  msec  )  [inline]
 

void RobotFlow::Timer::start  )  [inline]
 

void RobotFlow::Timer::stop  )  [inline]
 

void RobotFlow::Timer::unlock  )  [inline, private]
 


Friends And Related Function Documentation

void* timer_thread void *  timerPtr  )  [friend]
 


Field Documentation

pthread_mutex_t RobotFlow::Timer::m_mutex [private]
 

long RobotFlow::Timer::m_remaining_time [private]
 

pthread_t RobotFlow::Timer::m_thread [private]
 


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:36:28 2005 for RobotFlow by  doxygen 1.4.4