49#ifndef GUM_PARTIAL_INSTANTIATION_REGISTER_4_MULTI_DIM_H
50#define GUM_PARTIAL_INSTANTIATION_REGISTER_4_MULTI_DIM_H
64 template <
typename GUM_ELEMENT >
88 template <
typename GUM_ELEMENT >
124 void insert(std::string_view instantiation_func_name,
125 std::string_view type_multidim,
140 void erase(std::string_view instantiation_func_name, std::string_view type_multidim);
155 bool exists(std::string_view instantiation_func_name, std::string_view type_multidim)
const;
174 std::string_view type_multidim)
const;
232 template <
typename GUM_ELEMENT >
234 std::string_view instantiation_func_name,
235 std::string_view type_multidim,
Base class for discrete random variable.
The class for generic Hash Tables.
<agrum/base/multidim/multiDimImplementation.h>
void erase(std::string_view instantiation_func_name, std::string_view type_multidim)
Removes a given entry from the register.
PartialInstantiationRegister4MultiDim()
Default constructor: creates an empty register.
~PartialInstantiationRegister4MultiDim()
Class destructor.
void insert(std::string_view instantiation_func_name, std::string_view type_multidim, PartialInstantiationPtr newFunction)
Adds a new entry into the register.
HashTable< std::string, PartialInstantiationPtr > PartialInstantiationSet
The set of associations for a given partial instantiation type.
MultiDimImplementation< GUM_ELEMENT > *(*)(const MultiDimImplementation< GUM_ELEMENT > *, const HashTable< const DiscreteVariable *, Idx > &) PartialInstantiationPtr
The type of functions used by the register.
PartialInstantiationPtr get(std::string_view instantiation_func_name, std::string_view type_multidim) const
Returns the specialized partial instantiation operator assigned to a given type of MultiDimImplementa...
static PartialInstantiationRegister4MultiDim & Register()
A named constructor that constructs one and only one Register per data type.
HashTable< std::string, PartialInstantiationSet * > _set_
A mapping from the types of MultiDimImplementations to partial instantiation operators.
bool exists(std::string_view instantiation_func_name, std::string_view type_multidim) const
Indicates whether a given entry exists in the register.
Base class for discrete random variable.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities
void registerPartialInstantiation(std::string_view instantiation_func_name, std::string_view type_multidim, typename PartialInstantiationRegister4MultiDim< GUM_ELEMENT >::PartialInstantiationPtr function)
A function to more easily register new instantiation functions in MultiDims.
Implementation of PartialInstantiationRegister4MultiDim.