31 #ifndef GUM_PROJECTION_REGISTER_4_MULTI_DIM_H 32 #define GUM_PROJECTION_REGISTER_4_MULTI_DIM_H 44 template <
typename GUM_SCALAR >
45 class MultiDimImplementation;
61 template <
typename GUM_SCALAR >
97 void insert(
const std::string& projection_name,
98 const std::string& type_multidim,
115 void erase(
const std::string& projection_name,
116 const std::string& type_multidim);
132 bool exists(
const std::string& projection_name,
133 const std::string& type_multidim)
const;
154 const std::string& type_multidim)
const;
205 template <
typename GUM_SCALAR >
207 const std::string& projection_name,
208 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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
~ProjectionRegister4MultiDim()
Destructor.
ProjectionRegister4MultiDim()
Default constructor: creates an empty register.
<agrum/multidim/multiDimImplementation.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.