aGrUM  0.14.2
multiDimPartialInstantiation.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Pierre-Henri WUILLEMIN et Christophe GONZALES *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
26 #ifndef GUM_MULTI_DIM_PARTIAL_INSTANTIATION_H
27 #define GUM_MULTI_DIM_PARTIAL_INSTANTIATION_H
28 
29 #include <agrum/core/set.h>
34 #include <utility>
35 
36 namespace gum {
37 
56  template < typename GUM_SCALAR, template < typename > class TABLE >
58  public:
59  // =========================================================================
61  // =========================================================================
63 
68 
75 
80 
88 
90  // =========================================================================
92  // =========================================================================
94 
96 
98  // =========================================================================
100  // =========================================================================
102 
117  TABLE< GUM_SCALAR >*
118  instantiate(const TABLE< GUM_SCALAR >& table,
120 
133  void instantiate(TABLE< GUM_SCALAR >& container,
134  const TABLE< GUM_SCALAR >& table,
136 
138  };
139 
140 } /* namespace gum */
141 
142 // always include the template implementation
144 
145 #endif /* GUM_MULTI_DIM_PARTIAL_INSTANTIATION_H */
Headers for PartialInstantiationRegister4MultiDim.
Base class for discrete random variable.
virtual ~MultiDimPartialInstantiation()
Class destructor.
Sets of elements (i.e.
MultiDimPartialInstantiation()
Default constructor.
MultiDimPartialInstantiation< GUM_SCALAR, TABLE > & operator=(const MultiDimPartialInstantiation< GUM_SCALAR, TABLE > &src)
Copy operator.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Headers of gum::MultiDimImplementation.
The class for generic Hash Tables.
Definition: hashTable.h:676
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.
Headers for MultiDimDecorator.
A generic class to instantiate a subset of variables of a multidimensional table. ...
virtual MultiDimPartialInstantiation< GUM_SCALAR, TABLE > * newFactory() const
Implementation of MultiDimPartialInstantiation.