aGrUM  0.14.2
scheduleSeparatorStoreMultiDim.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  ***************************************************************************/
27 #ifndef GUM_SCHEDULE_SEPARATOR_STORE_MULTI_DIM_H
28 #define GUM_SCHEDULE_SEPARATOR_STORE_MULTI_DIM_H
29 
30 #include <string>
31 
32 #include <agrum/agrum.h>
33 
34 #include <agrum/core/sequence.h>
39 
40 namespace gum {
41 
42  template < typename GUM_SCALAR >
43 
44  class ScheduleSeparatorStoreMultiDim : public ScheduleOperation< GUM_SCALAR > {
45  public:
46  // ############################################################################
48  // ############################################################################
50 
53  const ScheduleMultiDim< GUM_SCALAR >& table,
55  separator_tables,
56  Arc separator);
57 
61 
64 
67 
69 
70  // ############################################################################
72  // ############################################################################
74 
78 
80 
83 
85 
88 
90 
91  // ############################################################################
93  // ############################################################################
95 
97  void execute();
98 
101  float nbOperations() const;
102 
104 
112  std::pair< long, long > memoryUsage() const;
113 
116 
119  multiDimResults() const;
120 
122  std::string toString() const;
123 
125 
126  private:
127  // the table to store into the clique
129 
130  // a mapping assigning to each clique a set of tables
132 
133  // the separator into which the table will be stored
135 
138  };
139 
140 } /* namespace gum */
141 
142 // always include the template implementation
144 
145 #endif /* GUM_SCHEDULE_SEPARATOR_STORE_MULTI_DIM_H */
virtual ScheduleSeparatorStoreMultiDim< GUM_SCALAR > * newFactory() const
virtual copy constructor: creates a clone of the operation
an operator used by scheduled inferences to store tables into separators
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimResults() const
returns the set of multidims that should be the result of the operation
a MultiDimImplementation Wrapper used for scheduling inferences
Header file of gum::Sequence, a class for storing (ordered) sequences of objects. ...
a MultiDimImplementation Wrapper used for scheduling inferences
ArcProperty< Set< const MultiDimImplementation< GUM_SCALAR > *> > * __tableSet
std::pair< long, long > memoryUsage() const
returns the memory consumption used during the operation
The generic class for storing (ordered) sequences of objects.
Definition: sequence.h:1019
float nbOperations() const
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation ...
virtual ~ScheduleSeparatorStoreMultiDim()
destructor
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
bool operator!=(const ScheduleOperation< GUM_SCALAR > &) const
operator !=
bool operator==(const ScheduleOperation< GUM_SCALAR > &) const
operator ==
Representation of a setA Set is a structure that contains arbitrary elements.
Definition: set.h:162
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimArgs() const
returns the set of multidims passed in argument to the operation
void execute()
executes the operation
ScheduleSeparatorStoreMultiDim< GUM_SCALAR > & operator=(const ScheduleSeparatorStoreMultiDim< GUM_SCALAR > &)
copy operator
The base class for all directed edgesThis class is used as a basis for manipulating all directed edge...
std::string toString() const
displays the content of the operation
the base operation class used to schedule inferences
ScheduleSeparatorStoreMultiDim(const ScheduleMultiDim< GUM_SCALAR > &table, ArcProperty< Set< const MultiDimImplementation< GUM_SCALAR > * > > &separator_tables, Arc separator)
default constructor
Sequence< const ScheduleMultiDim< GUM_SCALAR > *> * __args
the set of ScheduleMultidims passed in arguments
<agrum/multidim/multiDimImplementation.h>
some utils for topology : NodeId, Edge, Arc and consorts ...