31 #ifndef GUM_COMPLETE_PROJECTION_REGISTER_4_MULTI_DIM_H 32 #define GUM_COMPLETE_PROJECTION_REGISTER_4_MULTI_DIM_H 46 template <
typename GUM_SCALAR >
47 class MultiDimImplementation;
65 template <
typename GUM_SCALAR >
99 void insert(
const std::string& projection_name,
100 const std::string& type_multidim,
117 void erase(
const std::string& projection_name,
118 const std::string& type_multidim);
134 bool exists(
const std::string& projection_name,
135 const std::string& type_multidim)
const;
154 const std::string& type_multidim)
const;
208 template <
typename GUM_SCALAR >
210 const std::string& type_multidim,
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
static CompleteProjectionRegister4MultiDim & Register()
A named constructor that constructs one and only one Register per data type.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void erase(const std::string &projection_name, const std::string &type_multidim)
Removes a given entry from the register.
bool exists(const std::string &projection_name, const std::string &type_multidim) const
Indicates whether a given entry exists in the register.
~CompleteProjectionRegister4MultiDim()
Destructor.
HashTable< std::string, CompleteProjectionPtr > CompleteProjectionSet
The set of associations for a given projection type.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for generic Hash Tables.
void registerCompleteProjection(const std::string &projection_name, const std::string &type_multidim, typename CompleteProjectionRegister4MultiDim< GUM_SCALAR >::CompleteProjectionPtr function)
A function to more easily register new projection functions in MultiDims.
void insert(const std::string &projection_name, const std::string &type_multidim, CompleteProjectionPtr newFunction)
Adds a new entry into the register.
GUM_SCALAR(* CompleteProjectionPtr)(const MultiDimImplementation< GUM_SCALAR > *, Instantiation *instantiation)
the type of functions used by the register
HashTable< std::string, CompleteProjectionSet *> __set
A mapping from the types of MultiDimImplementations to projection operators.
CompleteProjectionRegister4MultiDim()
Default constructor: creates an empty 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.
Class for assigning/browsing values to tuples of discrete variables.
<agrum/multidim/multiDimImplementation.h>
A container for registering complete projection functions on multiDimImplementations, i.e., functions projecting tables over all their variables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.