aGrUM  0.14.2
scheduleCombine.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  ***************************************************************************/
25 #ifndef GUM_SCHEDULE_COMBINE_H
26 #define GUM_SCHEDULE_COMBINE_H
27 
28 #include <string>
29 
30 #include <agrum/agrum.h>
31 
32 #include <agrum/core/sequence.h>
36 
37 namespace gum {
38 
39  template < typename GUM_SCALAR >
40 
41  class ScheduleCombine : public ScheduleOperation< GUM_SCALAR > {
42  public:
43  // ############################################################################
45  // ############################################################################
47 
49 
53  const ScheduleMultiDim< GUM_SCALAR >& table2,
57 
60 
63 
66 
68 
69  // ############################################################################
71  // ############################################################################
73 
76 
78 
80  INLINE bool operator==(const ScheduleOperation< GUM_SCALAR >&) const;
81 
83 
85  INLINE bool operator!=(const ScheduleOperation< GUM_SCALAR >&) const;
86 
88 
89  // ############################################################################
91  // ############################################################################
93 
95  void execute();
96 
99  float nbOperations() const;
100 
102 
110  std::pair< long, long > memoryUsage() const;
111 
114  INLINE const ScheduleMultiDim< GUM_SCALAR >& result() const;
115 
118 
121  multiDimResults() const;
122 
124  std::string toString() const;
125 
127 
128  private:
131 
134 
136 
138 
141 
144 
148  const MultiDimImplementation< GUM_SCALAR >&);
149  };
150 
151 } /* namespace gum */
152 
153 // always include the template implementation
155 
156 #endif /* GUM_SCHEDULE_COMBINE_H */
void execute()
executes the operation
INLINE bool operator==(const ScheduleOperation< GUM_SCALAR > &) const
operator ==
ScheduleMultiDim< GUM_SCALAR > __table1
the first table to combine
a Combination operator class used for scheduling inferences
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
Sequence< const ScheduleMultiDim< GUM_SCALAR > *> * __args
the set of ScheduleMultidims passed in arguments
std::string toString() const
displays the content of the operation
virtual ScheduleCombine< GUM_SCALAR > * newFactory() const
virtual copy constructor: creates a clone of the operation
The generic class for storing (ordered) sequences of objects.
Definition: sequence.h:1019
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
std::pair< long, long > memoryUsage() const
returns the memory consumption used during the operation
ScheduleCombine< GUM_SCALAR > & operator=(const ScheduleCombine< GUM_SCALAR > &)
copy operator
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Headers of gum::MultiDimImplementation.
float nbOperations() const
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation ...
the base operation class used to schedule inferences
~ScheduleCombine()
destructor
Sequence< const ScheduleMultiDim< GUM_SCALAR > *> * __results
the set of ScheduleMultidims resulting from the operation
ScheduleMultiDim< GUM_SCALAR > * __result
the result of the operation
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimResults() const
returns the set of multidims that should be the result of the operation
<agrum/multidim/multiDimImplementation.h>
INLINE const ScheduleMultiDim< GUM_SCALAR > & result() const
returns the scheduleMultidim resulting from the execution of the operation
ScheduleMultiDim< GUM_SCALAR > __table2
the second table to combine with
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimArgs() const
returns the set of multidims passed in argument to the operation
INLINE bool operator!=(const ScheduleOperation< GUM_SCALAR > &) const
operator !=