29 #ifndef GUM_MULTI_DIM_COMBINATION_H 30 #define GUM_MULTI_DIM_COMBINATION_H 96 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
137 virtual TABLE< GUM_SCALAR >*
138 combine(
const Set<
const TABLE< GUM_SCALAR >* >&
set) = 0;
139 virtual void combine(TABLE< GUM_SCALAR >& container,
140 const Set<
const TABLE< GUM_SCALAR >* >&
set) = 0;
144 const TABLE< GUM_SCALAR >&,
const TABLE< GUM_SCALAR >&)) = 0;
148 const TABLE< GUM_SCALAR >&,
const TABLE< GUM_SCALAR >&) = 0;
171 virtual std::pair< long, long >
172 memoryUsage(
const Set<
const TABLE< GUM_SCALAR >* >&
set)
const = 0;
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void setCombineFunction(TABLE< GUM_SCALAR > *(*combine)(const TABLE< GUM_SCALAR > &, const TABLE< GUM_SCALAR > &))=0
changes the function used for combining two TABLES
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The generic class for storing (ordered) sequences of objects.
MultiDimCombination()
default constructor
virtual TABLE< GUM_SCALAR > *(*)(const TABLE< GUM_SCALAR > &, const TABLE< GUM_SCALAR > &) combineFunction()
returns the combination function currently used by the combinator
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Representation of a setA Set is a structure that contains arbitrary elements.
virtual std::pair< long, long > memoryUsage(const Set< const TABLE< GUM_SCALAR > * > &set) const =0
Returns the memory consumption used during the combination.
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 float nbOperations(const Set< const TABLE< GUM_SCALAR > * > &set) const =0
returns a rough estimate of the number of operations that will be performed to compute the combinatio...