28 #ifndef GUM_MULTI_DIM_COMBINATION_H 29 #define GUM_MULTI_DIM_COMBINATION_H 31 #include <agrum/tools/core/sequence.h> 32 #include <agrum/tools/core/set.h> 33 #include <agrum/tools/variables/discreteVariable.h> 95 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
136 virtual TABLE< GUM_SCALAR >*
combine(
const Set<
const TABLE< GUM_SCALAR >* >& set) = 0;
137 virtual void combine(TABLE< GUM_SCALAR >& container,
138 const Set<
const TABLE< GUM_SCALAR >* >& set)
142 virtual void setCombineFunction(TABLE< GUM_SCALAR >* (*combine)(
const TABLE< GUM_SCALAR >&,
143 const TABLE< GUM_SCALAR >&))
147 virtual TABLE< GUM_SCALAR >* (*combineFunction())(
const TABLE< GUM_SCALAR >&,
148 const TABLE< GUM_SCALAR >&)
155 virtual float nbOperations(
const Set<
const TABLE< GUM_SCALAR >* >& set)
const = 0;
157 nbOperations(
const Set<
const Sequence<
const DiscreteVariable* >* >& set)
const = 0;
171 virtual std::pair<
long,
long >
172 memoryUsage(
const Set<
const TABLE< GUM_SCALAR >* >& set)
const = 0;
173 virtual std::pair<
long,
long >
174 memoryUsage(
const Set<
const Sequence<
const DiscreteVariable* >* >& set)
const = 0;
187 #include <agrum/tools/multidim/utils/operators/multiDimCombination_tpl.h> virtual void combine(TABLE< GUM_SCALAR > &container, const Set< const TABLE< GUM_SCALAR > * > &set)=0
creates and returns the result of the combination of the tables within set
virtual TABLE< GUM_SCALAR > * combine(const Set< const TABLE< GUM_SCALAR > * > &set)=0
creates and returns the result of the combination of the tables within set
virtual void setCombineFunction(TABLE< GUM_SCALAR > *(*combine)(const TABLE< GUM_SCALAR > &, const TABLE< GUM_SCALAR > &))=0
changes the function used for combining two TABLES
INLINE void emplace(Args &&... args)
MultiDimCombination()
default constructor
MultiDimCombination(const MultiDimCombination< GUM_SCALAR, TABLE > &)
copy constructor
virtual MultiDimCombination< GUM_SCALAR, TABLE > * newFactory() const =0
virtual constructor
MultiDimCombination< GUM_SCALAR, TABLE > & operator=(const MultiDimCombination< GUM_SCALAR, TABLE > &)
forbid copy operators
virtual ~MultiDimCombination()
destructor
A generic interface to combine efficiently several MultiDim tables.
virtual std::pair< long, long > memoryUsage(const Set< const Sequence< const DiscreteVariable * > * > &set) const =0
creates and returns the result of the combination of the tables within set
virtual float nbOperations(const Set< const Sequence< const DiscreteVariable * > * > &set) const =0
creates and returns the result of the combination of the tables within set