50#ifndef GUM_COMPLETE_PROJECTION_REGISTER_4_MULTI_DIM_H
51#define GUM_COMPLETE_PROJECTION_REGISTER_4_MULTI_DIM_H
65 template <
typename GUM_ELEMENT >
85 template <
typename GUM_ELEMENT >
119 void insert(std::string_view projection_name,
120 std::string_view type_multidim,
137 void erase(std::string_view projection_name, std::string_view type_multidim);
153 bool exists(std::string_view projection_name, std::string_view type_multidim)
const;
172 std::string_view type_multidim)
const;
225 template <
typename GUM_ELEMENT >
227 std::string_view projection_name,
228 std::string_view type_multidim,
void insert(std::string_view projection_name, std::string_view type_multidim, CompleteProjectionPtr newFunction)
Adds a new entry into the register.
static CompleteProjectionRegister4MultiDim & Register()
A named constructor that constructs one and only one Register per data type.
CompleteProjectionRegister4MultiDim(const CompleteProjectionRegister4MultiDim &)
copy operator: never to be used
CompleteProjectionRegister4MultiDim()
Default constructor: creates an empty register.
HashTable< std::string, CompleteProjectionPtr > CompleteProjectionSet
The set of associations for a given projection type.
bool exists(std::string_view projection_name, std::string_view type_multidim) const
Indicates whether a given entry exists in the register.
~CompleteProjectionRegister4MultiDim()
Destructor.
void erase(std::string_view projection_name, std::string_view type_multidim)
Removes a given entry from the register.
HashTable< std::string, CompleteProjectionSet * > _set_
A mapping from the types of MultiDimImplementations to projection operators.
GUM_ELEMENT(*)(const MultiDimImplementation< GUM_ELEMENT > *, Instantiation *instantiation) CompleteProjectionPtr
the type of functions used by the register
CompleteProjectionPtr get(std::string_view projection_name, std::string_view type_multidim) const
returns the specialized projection operator assigned to a given type of MultiDimImplementation
Class for assigning/browsing values to tuples of discrete variables.
<agrum/base/multidim/multiDimImplementation.h>
A container for registering complete projection functions on multiDimImplementations,...
void registerCompleteProjection(std::string_view projection_name, std::string_view type_multidim, typename CompleteProjectionRegister4MultiDim< GUM_ELEMENT >::CompleteProjectionPtr function)
A function to more easily register new projection functions in MultiDims.
Header files of gum::Instantiation.
gum is the global namespace for all aGrUM entities