28 #ifndef GUM_PROJECTION_REGISTER_4_MULTI_DIM_H 29 #define GUM_PROJECTION_REGISTER_4_MULTI_DIM_H 41 template <
typename GUM_SCALAR >
42 class MultiDimImplementation;
58 template <
typename GUM_SCALAR >
94 void insert(
const std::string& projection_name,
95 const std::string& type_multidim,
112 void erase(
const std::string& projection_name,
113 const std::string& type_multidim);
129 bool exists(
const std::string& projection_name,
130 const std::string& type_multidim)
const;
151 const std::string& type_multidim)
const;
202 template <
typename GUM_SCALAR >
204 const std::string& projection_name,
205 const std::string& type_multidim,
static ProjectionRegister4MultiDim & Register()
a named constructor that constructs one and only one Register per data type
MultiDimImplementation< GUM_SCALAR > *(* ProjectionPtr)(const MultiDimImplementation< GUM_SCALAR > *, const Set< const DiscreteVariable * > &)
the type of functions used by the register
Base class for discrete random variable.
HashTable< std::string, ProjectionPtr > ProjectionSet
The set of associations for a given projection type.
void erase(const std::string &projection_name, const std::string &type_multidim)
removes a given entry from the register
gum is the global namespace for all aGrUM entities
The class for generic Hash Tables.
bool exists(const std::string &projection_name, const std::string &type_multidim) const
indicates whether a given entry exists in the register
Representation of a setA Set is a structure that contains arbitrary elements.
void registerProjection(const std::string &projection_name, const std::string &type_multidim, typename ProjectionRegister4MultiDim< GUM_SCALAR >::ProjectionPtr function)
A function to more easily register new projection functions in MultiDims.
HashTable< std::string, ProjectionSet *> __set
A mapping from the types of MultiDimImplementations to projection operators.
A container for registering projection functions on multiDimImplementations, i.e., functions projecting tables over a subset of their variables.
void insert(const std::string &projection_name, const std::string &type_multidim, ProjectionPtr newFunction)
adds a new entry into the register
A container for registering projection functions on multiDimImplementations.
~ProjectionRegister4MultiDim()
Destructor.
ProjectionRegister4MultiDim()
Default constructor: creates an empty register.
<agrum/multidim/multiDimImplementation.h>
Class hash tables iterators.