|
BPMN-OS
BPMN for optimization and simulation
|
Utility class for representing strings by numeric values. More...
The StringRegistry class provides efficient access to the string by index and retrieval of the index by string.
Definition at line 17 of file StringRegistry.h.
#include <StringRegistry.h>
Public Member Functions | |
| StringRegistry () | |
| Constructor adds "false" and "true" at indices 0 and 1. | |
| std::string | operator[] (size_t i) const |
| Operator providing access to a registered string by index. | |
| size_t | operator() (const std::string &string) |
| Operator to register a string and return its index. | |
| void | clear () |
| StringRegistry (const StringRegistry &)=delete | |
| StringRegistry & | operator= (const StringRegistry &)=delete |
| StringRegistry::StringRegistry | ( | ) |
Definition at line 7 of file StringRegistry.cpp.
|
delete |
| void StringRegistry::clear | ( | ) |
Definition at line 30 of file StringRegistry.cpp.
| size_t StringRegistry::operator() | ( | const std::string & | string | ) |
Definition at line 18 of file StringRegistry.cpp.
|
delete |
| std::string StringRegistry::operator[] | ( | size_t | i | ) | const |
Definition at line 13 of file StringRegistry.cpp.