aGrUM  0.14.2
scheduleDeleteMultiDim.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_SCHEDULE_DELETE_MULTI_DIM_H
27 #define GUM_SCHEDULE_DELETE_MULTI_DIM_H
28 
29 #include <string>
30 
31 #include <agrum/agrum.h>
32 
33 #include <agrum/core/sequence.h>
37 
38 namespace gum {
39 
40  template < typename GUM_SCALAR >
41 
42  class ScheduleDeleteMultiDim : public ScheduleOperation< GUM_SCALAR > {
43  public:
44  // ############################################################################
46  // ############################################################################
48 
50 
54 
57 
60 
62  virtual ~ScheduleDeleteMultiDim();
63 
65 
66  // ############################################################################
68  // ############################################################################
70 
74 
76 
79 
81 
84 
86 
87  // ############################################################################
89  // ############################################################################
91 
93  void execute();
94 
97  float nbOperations() const;
98 
100 
108  std::pair< long, long > memoryUsage() const;
109 
112 
115  multiDimResults() const;
116 
118  std::string toString() const;
119 
121 
122  private:
123  // the table to delete
125 
128  };
129 
130 } /* namespace gum */
131 
132 // always include the template implementation
134 
135 #endif /* GUM_SCHEDULE_DELETE_MULTI_DIM_H */
std::string toString() const
displays the content 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
The generic class for storing (ordered) sequences of objects.
Definition: sequence.h:1019
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimResults() const
returns the set of multidims that should be the result of the operation
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Headers of gum::MultiDimImplementation.
a MultiDim Delete operator class used for scheduling inferences
std::pair< long, long > memoryUsage() const
returns the memory consumption used during the operation
virtual ~ScheduleDeleteMultiDim()
destructor
the base operation class used to schedule inferences
ScheduleDeleteMultiDim(const ScheduleMultiDim< GUM_SCALAR > &table)
default constructor
void execute()
executes the operation
ScheduleMultiDim< GUM_SCALAR > __table
float nbOperations() const
returns an estimation of the number of elementary operations needed to perform the ScheduleOperation ...
ScheduleDeleteMultiDim< GUM_SCALAR > & operator=(const ScheduleDeleteMultiDim< GUM_SCALAR > &)
copy operator
virtual ScheduleDeleteMultiDim< GUM_SCALAR > * newFactory() const
virtual copy constructor: creates a clone of the operation
const Sequence< const ScheduleMultiDim< GUM_SCALAR > *> & multiDimArgs() const
returns the set of multidims passed in argument to the operation
bool operator==(const ScheduleOperation< GUM_SCALAR > &) const
operator ==
bool operator!=(const ScheduleOperation< GUM_SCALAR > &) const
operator !=
Sequence< const ScheduleMultiDim< GUM_SCALAR > *> * __args
the set of ScheduleMultidims passed in arguments