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

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

Detailed Description

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
 
StringRegistryoperator= (const StringRegistry &)=delete
 

Constructor & Destructor Documentation

◆ StringRegistry() [1/2]

StringRegistry::StringRegistry ( )

Definition at line 7 of file StringRegistry.cpp.

◆ StringRegistry() [2/2]

BPMNOS::StringRegistry::StringRegistry ( const StringRegistry & )
delete

Member Function Documentation

◆ clear()

void StringRegistry::clear ( )

Definition at line 30 of file StringRegistry.cpp.

◆ operator()()

size_t StringRegistry::operator() ( const std::string & string)

Definition at line 18 of file StringRegistry.cpp.

◆ operator=()

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

◆ operator[]()

std::string StringRegistry::operator[] ( size_t i) const

Definition at line 13 of file StringRegistry.cpp.


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