50#ifndef GUM_PROJECTION_REGISTER_4_MULTI_DIM_H
51#define GUM_PROJECTION_REGISTER_4_MULTI_DIM_H
65 template <
typename GUM_ELEMENT >
83 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;
173 ProjectionPtr get(std::string_view projection_name, std::string_view type_multidim)
const;
224 template <
typename GUM_ELEMENT >
226 std::string_view projection_name,
227 std::string_view type_multidim,
<agrum/base/multidim/multiDimImplementation.h>
ProjectionPtr get(std::string_view projection_name, std::string_view type_multidim) const
returns the specialized projection operator assigned to a given type of MultiDimImplementation
ProjectionRegister4MultiDim()
Default constructor: creates an empty register.
HashTable< std::string, ProjectionPtr > ProjectionSet
The set of associations for a given projection type.
~ProjectionRegister4MultiDim()
Destructor.
void insert(std::string_view projection_name, std::string_view type_multidim, ProjectionPtr newFunction)
adds a new entry into the register
void erase(std::string_view projection_name, std::string_view type_multidim)
removes a given entry from the register
static ProjectionRegister4MultiDim & Register()
a named constructor that constructs one and only one Register per data type
MultiDimImplementation< GUM_ELEMENT > *(*)(const MultiDimImplementation< GUM_ELEMENT > *, const gum::VariableSet &) ProjectionPtr
the type of functions used by the register
HashTable< std::string, ProjectionSet * > _set_
A mapping from the types of MultiDimImplementations to projection operators.
bool exists(std::string_view projection_name, std::string_view type_multidim) const
indicates whether a given entry exists in the register
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
Set< const DiscreteVariable * > VariableSet
void registerProjection(std::string_view projection_name, std::string_view type_multidim, typename ProjectionRegister4MultiDim< GUM_ELEMENT >::ProjectionPtr function)
A function to more easily register new projection functions in MultiDims.
A container for registering projection functions on multiDimImplementations.