BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BPMNOS::CollectionRegistry Struct Reference

Utility class for representing collections by numeric values. More...

Detailed Description

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 Collectionoperator[] (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
 
CollectionRegistryoperator= (const CollectionRegistry &)=delete
 

Constructor & Destructor Documentation

◆ CollectionRegistry() [1/2]

CollectionRegistry::CollectionRegistry ( )

Definition at line 47 of file CollectionRegistry.cpp.

◆ CollectionRegistry() [2/2]

BPMNOS::CollectionRegistry::CollectionRegistry ( const CollectionRegistry & )
delete

Member Function Documentation

◆ clear()

void CollectionRegistry::clear ( )

Definition at line 69 of file CollectionRegistry.cpp.

◆ operator()()

size_t CollectionRegistry::operator() ( const std::string & collection)

Definition at line 56 of file CollectionRegistry.cpp.

◆ operator=()

CollectionRegistry & BPMNOS::CollectionRegistry::operator= ( const CollectionRegistry & )
delete

◆ operator[]()

const Collection & CollectionRegistry::operator[] ( size_t i) const

Definition at line 52 of file CollectionRegistry.cpp.


The documentation for this struct was generated from the following files: