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 |
| 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] |
| void setCount | ( | const int & | count | ) | [inline] |
| const int getCount | ( | ) | const [inline] |
| const int decrementCount | ( | ) | [inline] |
| const Type getData | ( | ) | const [inline] |
| void setData | ( | const Type & | data | ) | [inline] |
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().
1.5.1