|
|
An atomic counter with an associated name
| explicit NamedCounter (const String& name)
| NamedCounter |
Constructor
Parameters:
| name | Name of the counter |
| inline bool enabled ()
| enabled |
[const]
Check if the counter is enabled
Returns: True if the counter is enabled
| inline void enable (bool val)
| enable |
Enable or disable the counter
Parameters:
| val | True to enable counter, false to disable |
| int inc ()
| inc |
Increment the counter
Returns: Post-increment value of the counter
| int dec ()
| dec |
Decrement the counter
Returns: Post-decrement value of the counter
| inline int count ()
| count |
[const]
Get the current value of the counter
Returns: Value of the counter
| Generated by: paulc on bussard on Fri May 8 12:37:22 2015, using kdoc 2.0a54. |