29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 34 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
35 MultiDimPartialInstantiation< GUM_SCALAR,
36 TABLE >::MultiDimPartialInstantiation() {
38 GUM_CONSTRUCTOR(MultiDimPartialInstantiation);
42 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
44 const MultiDimPartialInstantiation< GUM_SCALAR, TABLE >& from) {
46 GUM_CONS_CPY(MultiDimPartialInstantiation);
50 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
51 MultiDimPartialInstantiation< GUM_SCALAR,
52 TABLE >::~MultiDimPartialInstantiation() {
54 GUM_DESTRUCTOR(MultiDimPartialInstantiation);
58 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
59 MultiDimPartialInstantiation< GUM_SCALAR, TABLE >*
61 return new MultiDimPartialInstantiation< GUM_SCALAR, TABLE >(*this);
65 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
66 MultiDimPartialInstantiation< GUM_SCALAR, TABLE >&
68 operator=(
const MultiDimPartialInstantiation< GUM_SCALAR, TABLE >& from) {
73 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
76 const TABLE< GUM_SCALAR >& table,
77 const HashTable< const DiscreteVariable*, Idx >& inst_vars) {
78 MultiDimImplementation< GUM_SCALAR >* new_impl =
80 return new TABLE< GUM_SCALAR >(new_impl);
84 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
86 TABLE< GUM_SCALAR >& container,
87 const TABLE< GUM_SCALAR >& table,
88 const HashTable< const DiscreteVariable*, Idx >& inst_vars) {
89 MultiDimImplementation< GUM_SCALAR >* new_impl =
91 container = *new_impl;
MultiDimPartialInstantiation()
Default constructor.
MultiDimPartialInstantiation< GUM_SCALAR, TABLE > & operator=(const MultiDimPartialInstantiation< GUM_SCALAR, TABLE > &src)
Copy operator.
gum is the global namespace for all aGrUM entities
TABLE< GUM_SCALAR > * instantiate(const TABLE< GUM_SCALAR > &table, const HashTable< const DiscreteVariable *, Idx > &inst_vars)
Creates and returns the partial instantiation of the table over a subset of its variables.
MultiDimImplementation< GUM_SCALAR > * partialInstantiation(const MultiDimImplementation< GUM_SCALAR > &table, const HashTable< const DiscreteVariable *, Idx > &inst_vars)
Instantiate variables in a MultiDimImplementation.
virtual MultiDimPartialInstantiation< GUM_SCALAR, TABLE > * newFactory() const