The pqNameCount class is used to associate a count to a name.
More...
#include <pqNameCount.h>
List of all members.
Detailed Description
The pqNameCount class is used to associate a count to a name.
The count associated with a name string can be incremented or set to a specific value. The name/count map can be reset as well.
Definition at line 55 of file pqNameCount.h.
Constructor & Destructor Documentation
| pqNameCount::pqNameCount |
( |
| ) |
|
| pqNameCount::~pqNameCount |
( |
| ) |
|
Member Function Documentation
| unsigned int pqNameCount::GetCount |
( |
const QString & |
name | ) |
|
Gets the current count for the specified name.
If the name does not exist in the map, a new entry is created and 1 is returned.
- Parameters:
-
- Returns:
- The count associated with the specified name.
| unsigned int pqNameCount::GetCountAndIncrement |
( |
const QString & |
name | ) |
|
| void pqNameCount::IncrementCount |
( |
const QString & |
name | ) |
|
| void pqNameCount::SetCount |
( |
const QString & |
name, |
|
|
unsigned int |
count |
|
) |
| |
Sets the count for the specified name.
- Parameters:
-
| name | The name to look up. |
| count | The new count to assign to the name. |
| void pqNameCount::Reset |
( |
| ) |
|
Resets the name/count map to an empty state.
The documentation for this class was generated from the following file: