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

Constructor & Destructor Documentation

◆ CollectionRegistry() [1/2]

CollectionRegistry::CollectionRegistry ( )

Definition at line 8 of file CollectionRegistry.cpp.

◆ CollectionRegistry() [2/2]

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

Member Function Documentation

◆ clear()

void CollectionRegistry::clear ( )

Definition at line 47 of file CollectionRegistry.cpp.

◆ operator()()

size_t CollectionRegistry::operator() ( const std::vector< double > & collection)

Definition at line 19 of file CollectionRegistry.cpp.

◆ operator=()

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

◆ operator[]()

const std::vector< double > & CollectionRegistry::operator[] ( size_t i) const

Definition at line 13 of file CollectionRegistry.cpp.

◆ size()

size_t CollectionRegistry::size ( ) const

Definition at line 42 of file CollectionRegistry.cpp.


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