![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
#include <scheduleCombine.h>
Public Member Functions | |
Constructors / Destructors | |
ScheduleCombine (const ScheduleMultiDim< GUM_SCALAR > &table1, const ScheduleMultiDim< GUM_SCALAR > &table2, MultiDimImplementation< GUM_SCALAR > *(*combine)(const MultiDimImplementation< GUM_SCALAR > &, const MultiDimImplementation< GUM_SCALAR > &)) | |
default constructor More... | |
ScheduleCombine (const ScheduleCombine< GUM_SCALAR > &) | |
copy constructor More... | |
virtual ScheduleCombine< GUM_SCALAR > * | newFactory () const |
virtual copy constructor: creates a clone of the operation More... | |
~ScheduleCombine () | |
destructor More... | |
Operators | |
ScheduleCombine< GUM_SCALAR > & | operator= (const ScheduleCombine< GUM_SCALAR > &) |
copy operator More... | |
INLINE bool | operator== (const ScheduleOperation< GUM_SCALAR > &) const |
operator == More... | |
INLINE bool | operator!= (const ScheduleOperation< GUM_SCALAR > &) const |
operator != More... | |
Accessors/Modifiers | |
void | execute () |
executes the operation More... | |
float | nbOperations () const |
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation More... | |
std::pair< long, long > | memoryUsage () const |
returns the memory consumption used during the operation More... | |
INLINE const ScheduleMultiDim< GUM_SCALAR > & | result () const |
returns the scheduleMultidim resulting from the execution of the operation More... | |
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & | multiDimArgs () const |
returns the set of multidims passed in argument to the operation More... | |
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & | multiDimResults () const |
returns the set of multidims that should be the result of the operation More... | |
std::string | toString () const |
displays the content of the operation More... | |
Accessors/Modifiers | |
Type | type () const |
returns the name of the operation More... | |
Idx | id () const |
returns the id of the operation More... | |
Public Types | |
enum | Type : char { Type::COMBINE_MULTIDIM, Type::PROJECT_MULTIDIM, Type::DELETE_MULTIDIM, Type::CLIQUE_STORE_MULTIDIM, Type::SEPARATOR_STORE_MULTIDIM } |
the currently supported types of operations More... | |
Definition at line 43 of file scheduleCombine.h.
|
stronginherited |
the currently supported types of operations
Enumerator | |
---|---|
COMBINE_MULTIDIM | combine 2 ScheduleMultiDims |
PROJECT_MULTIDIM | project a ScheduleMultiDim over a subset of its variables |
DELETE_MULTIDIM | delete a MultiDim from memory |
CLIQUE_STORE_MULTIDIM | store a Multidim into a clique |
SEPARATOR_STORE_MULTIDIM | store a multidim into a separator |
Definition at line 44 of file scheduleOperation.h.
gum::ScheduleCombine< GUM_SCALAR >::ScheduleCombine | ( | const ScheduleMultiDim< GUM_SCALAR > & | table1, |
const ScheduleMultiDim< GUM_SCALAR > & | table2, | ||
MultiDimImplementation< GUM_SCALAR > *(*)(const MultiDimImplementation< GUM_SCALAR > &, const MultiDimImplementation< GUM_SCALAR > &) | combine | ||
) |
default constructor
gum::ScheduleCombine< GUM_SCALAR >::ScheduleCombine | ( | const ScheduleCombine< GUM_SCALAR > & | ) |
copy constructor
gum::ScheduleCombine< GUM_SCALAR >::~ScheduleCombine | ( | ) |
destructor
|
virtual |
executes the operation
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
inherited |
returns the id of the operation
|
virtual |
returns the memory consumption used during the operation
Actually, this function does not return a precise account of the memory used by the ScheduleOperation but a rough estimate based on the sizes of the tables involved in the operation.
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
virtual |
returns the set of multidims passed in argument to the operation
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
virtual |
returns the set of multidims that should be the result of the operation
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
virtual |
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
virtual |
virtual copy constructor: creates a clone of the operation
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
virtual |
operator !=
Two operations are identical if and only if they have the same arguments and their types are identical (combine, project, etc)
Implements gum::ScheduleOperation< GUM_SCALAR >.
ScheduleCombine< GUM_SCALAR >& gum::ScheduleCombine< GUM_SCALAR >::operator= | ( | const ScheduleCombine< GUM_SCALAR > & | ) |
copy operator
|
virtual |
operator ==
Two operations are identical if and only if they have the same arguments and their types are identical (combine, project, etc)
Implements gum::ScheduleOperation< GUM_SCALAR >.
INLINE const ScheduleMultiDim< GUM_SCALAR >& gum::ScheduleCombine< GUM_SCALAR >::result | ( | ) | const |
returns the scheduleMultidim resulting from the execution of the operation
|
virtual |
displays the content of the operation
Implements gum::ScheduleOperation< GUM_SCALAR >.
|
inherited |
returns the name of the operation
|
mutableprivate |
the set of ScheduleMultidims passed in arguments
Definition at line 141 of file scheduleCombine.h.
|
private |
the function actually used to perform the combination
Definition at line 147 of file scheduleCombine.h.
|
private |
the result of the operation
the result is allocated and deallocated by ScheduleCombine
Definition at line 138 of file scheduleCombine.h.
|
mutableprivate |
the set of ScheduleMultidims resulting from the operation
Definition at line 144 of file scheduleCombine.h.
|
private |
the first table to combine
Definition at line 131 of file scheduleCombine.h.
|
private |
the second table to combine with
Definition at line 134 of file scheduleCombine.h.