DataCounter Class Template Reference

List of all members.

Detailed Description

template<typename Type>
class WURDE::DataCounter< Type >

Counter class -- holds a chunk of data and an integer value.

When the integer reaches 0, it can be safely discarded. This should be useful for communication adaptors.

Definition at line 284 of file RobotTypes.H.

Public Member Functions

 DataCounter (const int &count, const Type &data)
 DataCounter ()
void setCount (const int &count)
const int getCount () const
const int decrementCount ()
const Type getData () const
void setData (const Type &data)

Private Attributes

int m_count
Type m_data


Constructor & Destructor Documentation

DataCounter ( const int &  count,
const Type &  data 
) [inline]

Definition at line 286 of file RobotTypes.H.

References DataCounter::m_count, and DataCounter::m_data.

DataCounter (  )  [inline]

Definition at line 287 of file RobotTypes.H.

References DataCounter::m_count.


Member Function Documentation

void setCount ( const int &  count  )  [inline]

Definition at line 289 of file RobotTypes.H.

References DataCounter::m_count.

const int getCount (  )  const [inline]

Definition at line 290 of file RobotTypes.H.

References DataCounter::m_count.

const int decrementCount (  )  [inline]

Definition at line 291 of file RobotTypes.H.

References DataCounter::m_count.

const Type getData (  )  const [inline]

Definition at line 292 of file RobotTypes.H.

References DataCounter::m_data.

void setData ( const Type &  data  )  [inline]

Definition at line 293 of file RobotTypes.H.

References DataCounter::m_data.


Member Data Documentation

int m_count [private]

Definition at line 295 of file RobotTypes.H.

Referenced by DataCounter::DataCounter(), DataCounter::decrementCount(), DataCounter::getCount(), and DataCounter::setCount().

Type m_data [private]

Definition at line 296 of file RobotTypes.H.

Referenced by DataCounter::DataCounter(), DataCounter::getData(), and DataCounter::setData().


The documentation for this class was generated from the following file:
Generated on Thu Feb 1 15:31:56 2007 for WURDE by  doxygen 1.5.1