29 #ifndef GUM_MULTI_DIM_COMBINATION_DEFAULT_H 30 #define GUM_MULTI_DIM_COMBINATION_DEFAULT_H 101 template <
typename GUM_SCALAR,
template <
typename >
class TABLE >
118 const TABLE< GUM_SCALAR >&,
const TABLE< GUM_SCALAR >&));
151 virtual TABLE< GUM_SCALAR >*
152 combine(
const Set<
const TABLE< GUM_SCALAR >* >&
set);
153 virtual void combine(TABLE< GUM_SCALAR >& container,
154 const Set<
const TABLE< GUM_SCALAR >* >&
set);
158 const TABLE< GUM_SCALAR >&,
const TABLE< GUM_SCALAR >&));
161 virtual TABLE< GUM_SCALAR >* (*
combineFunction())(
const TABLE< GUM_SCALAR >&,
162 const TABLE< GUM_SCALAR >&);
168 virtual float nbOperations(
const Set<
const TABLE< GUM_SCALAR >* >&
set)
const;
183 virtual std::pair< long, long >
192 TABLE< GUM_SCALAR >* (*_combine)(
const TABLE< GUM_SCALAR >& t1,
193 const TABLE< GUM_SCALAR >& t2);
A class to combine efficiently several MultiDim tablesMultiDimCombinationDefault is a class designed ...
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 std::pair< long, long > memoryUsage(const Set< const TABLE< GUM_SCALAR > * > &set) const
Returns the additional memory consumption used during the combination.
The generic class for storing (ordered) sequences of objects.
virtual TABLE< GUM_SCALAR > *(*)(const TABLE< GUM_SCALAR > &, const TABLE< GUM_SCALAR > &) combineFunction()
Returns the combination function currently used by the combinator.
virtual void setCombineFunction(TABLE< GUM_SCALAR > *(*combine)(const TABLE< GUM_SCALAR > &, const TABLE< GUM_SCALAR > &))
Changes the function used for combining two TABLES.
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.
Representation of a setA Set is a structure that contains arbitrary elements.
virtual float nbOperations(const Set< const TABLE< GUM_SCALAR > * > &set) const
returns a rough estimate of the number of operations that will be performed to compute the combinatio...
Size _combinedSize(const Sequence< const DiscreteVariable * > &seq1, const Sequence< const DiscreteVariable * > &seq2) const
returns the domain size of the Cartesian product of the union of all the variables in seq1 and seq2...
virtual MultiDimCombinationDefault< GUM_SCALAR, TABLE > * newFactory() const
virtual constructor
A generic interface to combine efficiently several MultiDim tables.
MultiDimCombinationDefault(TABLE< GUM_SCALAR > *(*combine)(const TABLE< GUM_SCALAR > &, const TABLE< GUM_SCALAR > &))
Default constructor.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
virtual ~MultiDimCombinationDefault()
Destructor.
virtual TABLE< GUM_SCALAR > * combine(const Set< const TABLE< GUM_SCALAR > * > &set)
Creates and returns the result of the combination of the tables within set.