1#ifndef BPMNOS_Model_CollectionRegistry_H
2#define BPMNOS_Model_CollectionRegistry_H
6#include <unordered_map>
31 size_t operator()(
const std::string& collection);
34 std::vector<Collection> registeredCollections;
35 std::unordered_map<std::string, size_t> index;
36 std::mutex registryMutex;
BPMNOS::CollectionRegistry collectionRegistry
Utility class for representing collections by numeric values.
CollectionRegistry()
Constructor adds empty collection at index 0.
const Collection & operator[](size_t i) const
Operator providing access to a registered collections by index.
CollectionRegistry & operator=(const CollectionRegistry &)=delete
CollectionRegistry(const CollectionRegistry &)=delete
size_t operator()(const std::string &collection)
Operator to register a collection by its string representation and return its index.
Collection(const std::string &collection)