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 >
123 void insert(std::string_view instantiation_func_name,
124 std::string_view type_multidim,
139 void erase(std::string_view instantiation_func_name, std::string_view type_multidim);
154 bool exists(std::string_view instantiation_func_name, std::string_view type_multidim)
const;
173 std::string_view type_multidim)
const;
231 template <
typename GUM_ELEMENT >
233 std::string_view instantiation_func_name,
234 std::string_view type_multidim,
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.
PartialInstantiationRegister4MultiDim(const PartialInstantiationRegister4MultiDim &)
Copy operator: never to be used.
HashTable< std::string, PartialInstantiationPtr > PartialInstantiationSet
The set of associations for a given partial instantiation type.
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.
MultiDimImplementation< GUM_ELEMENT > *(*)( const MultiDimImplementation< GUM_ELEMENT > *, const HashTable< const DiscreteVariable *, Idx > &) PartialInstantiationPtr
The type of functions used by the register.
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.
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.