![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
A generic class to instantiate a subset of variables of a multidimensional table. More...
#include <multiDimPartialInstantiation.h>
Public Member Functions | |
Constructors, Destructors and Copy | |
| MultiDimPartialInstantiation () | |
| Default constructor. | |
| MultiDimPartialInstantiation (const MultiDimPartialInstantiation< GUM_SCALAR, TABLE > &src) | |
| Copy constructor. | |
| virtual | ~MultiDimPartialInstantiation () |
| Class destructor. | |
| MultiDimPartialInstantiation< GUM_SCALAR, TABLE > & | operator= (const MultiDimPartialInstantiation< GUM_SCALAR, TABLE > &src) |
| Copy operator. | |
inherited methdods | |
| virtual MultiDimPartialInstantiation< GUM_SCALAR, TABLE > * | newFactory () const |
Accessors/Modifiers | |
| 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. | |
| void | instantiate (TABLE< GUM_SCALAR > &container, 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. | |
A generic class to instantiate a subset of variables of a multidimensional table.
| GUM_SCALAR | The type of scalars stored in this multidimensional table. |
| Table | The class of multidimensional table to use. |
Definition at line 77 of file multiDimPartialInstantiation.h.
| gum::MultiDimPartialInstantiation< GUM_SCALAR, TABLE >::MultiDimPartialInstantiation | ( | ) |
Default constructor.
Referenced by MultiDimPartialInstantiation(), ~MultiDimPartialInstantiation(), newFactory(), and operator=().
| gum::MultiDimPartialInstantiation< GUM_SCALAR, TABLE >::MultiDimPartialInstantiation | ( | const MultiDimPartialInstantiation< GUM_SCALAR, TABLE > & | src | ) |
Copy constructor.
| src | The MultiDimPartialInstantiation to copy. |
References MultiDimPartialInstantiation().
|
virtual |
Class destructor.
References MultiDimPartialInstantiation().
| TABLE< GUM_SCALAR > * gum::MultiDimPartialInstantiation< GUM_SCALAR, TABLE >::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.
| table | The table to parially instantiate. |
| inst_vars | A mapping between variables and their instantiation. |
| void gum::MultiDimPartialInstantiation< GUM_SCALAR, TABLE >::instantiate | ( | TABLE< GUM_SCALAR > & | container, |
| 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.
| container | Placeholder of the instantiation of table given inst_vars. |
| table | The table to parially instantiate. |
| inst_vars | A mapping between variables and their instantiation. |
|
virtual |
| MultiDimPartialInstantiation< GUM_SCALAR, TABLE > & gum::MultiDimPartialInstantiation< GUM_SCALAR, TABLE >::operator= | ( | const MultiDimPartialInstantiation< GUM_SCALAR, TABLE > & | src | ) |
Copy operator.
| src | The MultiDimPartialInstantiation to copy. |
References MultiDimPartialInstantiation().