50#ifndef GUM_COMPLETE_PROJECTION_REGISTER_4_MULTI_DIM_H
51#define GUM_COMPLETE_PROJECTION_REGISTER_4_MULTI_DIM_H
63 template <
typename GUM_SCALAR >
83 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;
170 const std::string& type_multidim)
const;
223 template <
typename GUM_SCALAR >
225 const std::string& projection_name,
226 const std::string& type_multidim,
static CompleteProjectionRegister4MultiDim & Register()
A named constructor that constructs one and only one Register per data type.
CompleteProjectionPtr get(const std::string &projection_name, const std::string &type_multidim) const
returns the specialized projection operator assigned to a given type of MultiDimImplementation
HashTable< std::string, CompleteProjectionSet * > _set_
A mapping from the types of MultiDimImplementations to projection operators.
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.
CompleteProjectionRegister4MultiDim()
Default constructor: creates an empty register.
HashTable< std::string, CompleteProjectionPtr > CompleteProjectionSet
The set of associations for a given projection type.
void insert(const std::string &projection_name, const std::string &type_multidim, CompleteProjectionPtr newFunction)
Adds a new entry into the register.
GUM_SCALAR(*)(const MultiDimImplementation< GUM_SCALAR > *, Instantiation *instantiation) CompleteProjectionPtr
the type of functions used by the register
Class for assigning/browsing values to tuples of discrete variables.
<agrum/base/multidim/multiDimImplementation.h>
A container for registering complete projection functions on multiDimImplementations,...
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.
Header files of gum::Instantiation.
gum is the global namespace for all aGrUM entities