|
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 values representing the collection.
Definition at line 19 of file CollectionRegistry.h.
#include <CollectionRegistry.h>
Public Member Functions | |
| CollectionRegistry () | |
| Constructor adds empty collection at index 0. | |
| const std::vector< double > & | operator[] (size_t i) const |
| Operator providing access to a registered collections by index. | |
| size_t | operator() (const std::vector< double > &collection) |
| Operator to register a collection by its values and return its index. | |
| size_t | size () const |
| void | clear () |
| CollectionRegistry (const CollectionRegistry &)=delete | |
| CollectionRegistry & | operator= (const CollectionRegistry &)=delete |
| CollectionRegistry::CollectionRegistry | ( | ) |
Definition at line 8 of file CollectionRegistry.cpp.
|
delete |
| void CollectionRegistry::clear | ( | ) |
Definition at line 47 of file CollectionRegistry.cpp.
| size_t CollectionRegistry::operator() | ( | const std::vector< double > & | collection | ) |
Definition at line 19 of file CollectionRegistry.cpp.
|
delete |
| const std::vector< double > & CollectionRegistry::operator[] | ( | size_t | i | ) | const |
Definition at line 13 of file CollectionRegistry.cpp.
| size_t CollectionRegistry::size | ( | ) | const |
Definition at line 42 of file CollectionRegistry.cpp.