50#ifndef GUM_PROJECTION_REGISTER_4_MULTI_DIM_H
51#define GUM_PROJECTION_REGISTER_4_MULTI_DIM_H
63 template <
typename GUM_SCALAR >
81 template <
typename GUM_SCALAR >
117 void insert(
const std::string& projection_name,
118 const std::string& type_multidim,
135 void erase(
const std::string& projection_name,
const std::string& type_multidim);
151 bool exists(
const std::string& projection_name,
const std::string& type_multidim)
const;
171 ProjectionPtr get(
const std::string& projection_name,
const std::string& type_multidim)
const;
222 template <
typename GUM_SCALAR >
224 const std::string& projection_name,
225 const std::string& type_multidim,
<agrum/base/multidim/multiDimImplementation.h>
void insert(const std::string &projection_name, const std::string &type_multidim, ProjectionPtr newFunction)
adds a new entry into the register
ProjectionRegister4MultiDim()
Default constructor: creates an empty register.
void erase(const std::string &projection_name, const std::string &type_multidim)
removes a given entry from the register
MultiDimImplementation< GUM_SCALAR > *(*)(const MultiDimImplementation< GUM_SCALAR > *, 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(const std::string &projection_name, const std::string &type_multidim) const
indicates whether a given entry exists in the register
~ProjectionRegister4MultiDim()
Destructor.
ProjectionPtr get(const std::string &projection_name, const std::string &type_multidim) const
returns the specialized projection operator assigned to a given type of MultiDimImplementation
static ProjectionRegister4MultiDim & Register()
a named constructor that constructs one and only one Register per data type
HashTable< std::string, ProjectionPtr > ProjectionSet
The set of associations for a given projection type.
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
Set< const DiscreteVariable * > VariableSet
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.
A container for registering projection functions on multiDimImplementations.