|
BPMN-OS
BPMN for optimization and simulation
|
Utility class for representing collections by numeric values. More...
The CollectionRegistry class provides efficient access to the collection by index and retrieval of the index by the string representing the collection.
Definition at line 24 of file CollectionRegistry.h.
#include <CollectionRegistry.h>
Public Member Functions | |
| CollectionRegistry () | |
| Constructor adds empty collection at index 0. | |
| const Collection & | operator[] (size_t i) const |
| Operator providing access to a registered collections by index. | |
| size_t | operator() (const std::string &collection) |
| Operator to register a collection by its string representation and return its index. | |
| void | clear () |
| CollectionRegistry (const CollectionRegistry &)=delete | |
| CollectionRegistry & | operator= (const CollectionRegistry &)=delete |
| CollectionRegistry::CollectionRegistry | ( | ) |
Definition at line 47 of file CollectionRegistry.cpp.
|
delete |
| void CollectionRegistry::clear | ( | ) |
Definition at line 69 of file CollectionRegistry.cpp.
| size_t CollectionRegistry::operator() | ( | const std::string & | collection | ) |
Definition at line 56 of file CollectionRegistry.cpp.
|
delete |
| const Collection & CollectionRegistry::operator[] | ( | size_t | i | ) | const |
Definition at line 52 of file CollectionRegistry.cpp.