aGrUM  0.16.0
scheduleProjection.h
Go to the documentation of this file.
1 
65 #ifndef GUM_SCHEDULE_PROJECTION_H
66 #define GUM_SCHEDULE_PROJECTION_H
67 
68 #include <agrum/core/set.h>
72 #include <utility>
73 
74 namespace gum {
75 
76  template < typename GUM_SCALAR >
78  public:
79  // ############################################################################
81  // ############################################################################
83 
86 
89 
91  virtual ~ScheduleProjection();
92 
94 
96  virtual ScheduleProjection< GUM_SCALAR >* newFactory() const = 0;
97 
99 
100  // ############################################################################
102  // ############################################################################
104 
107 
115  const Set< const DiscreteVariable* >& del_vars,
116  Schedule< GUM_SCALAR >& schedule) = 0;
119  const Set< const DiscreteVariable* >& del_vars,
120  Schedule< GUM_SCALAR >& schedule);
121  template < template < typename > class TABLE >
123  project(const TABLE< GUM_SCALAR >& table,
124  const Set< const DiscreteVariable* >& del_vars,
125  Schedule< GUM_SCALAR >& schedule);
126 
130  const Set< const DiscreteVariable* >&)) = 0;
131 
135  const Set< const DiscreteVariable* >&) = 0;
136 
139  virtual float nbOperations(const ScheduleMultiDim< GUM_SCALAR >& table,
140  const Set< const DiscreteVariable* >& del_vars,
141  const Schedule< GUM_SCALAR >& schedule) = 0;
143  const Set< const DiscreteVariable* >& del_vars,
144  const Schedule< GUM_SCALAR >& schedule);
145  template < template < typename > class TABLE >
146  float nbOperations(const TABLE< GUM_SCALAR >& set,
147  const Set< const DiscreteVariable* >& del_vars,
148  const Schedule< GUM_SCALAR >& schedule);
149 
151 
159  virtual std::pair< long, long >
161  const Set< const DiscreteVariable* >& del_vars,
162  const Schedule< GUM_SCALAR >& schedule) = 0;
163  std::pair< long, long >
165  const Set< const DiscreteVariable* >& del_vars,
166  const Schedule< GUM_SCALAR >& schedule);
167  template < template < typename > class TABLE >
168  std::pair< long, long >
169  memoryUsage(const TABLE< GUM_SCALAR >& table,
170  const Set< const DiscreteVariable* >& del_vars,
171  const Schedule< GUM_SCALAR >& schedule);
172 
174 
175  private:
179  };
180 
181 } /* namespace gum */
182 
183 // always include the template implementation
185 
186 #endif /* GUM_SCHEDULE_PROJECTION_H */
virtual ScheduleProjection< GUM_SCALAR > * newFactory() const =0
virtual constructor
ScheduleProjection()
default constructor
virtual MultiDimImplementation< GUM_SCALAR > *(*)(const MultiDimImplementation< GUM_SCALAR > &, const Set< const DiscreteVariable *> &) projectFunction()
returns the projection function currently used by the projector
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
a MultiDimImplementation Wrapper used for scheduling inferences
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual ~ScheduleProjection()
destructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
virtual void setProjectFunction(MultiDimImplementation< GUM_SCALAR > *(*proj)(const MultiDimImplementation< GUM_SCALAR > &, const Set< const DiscreteVariable * > &))=0
changes the function used for projecting tables
Representation of a setA Set is a structure that contains arbitrary elements.
Definition: set.h:165
virtual float nbOperations(const ScheduleMultiDim< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule)=0
returns a rough estimate of the number of operations that will be performed to compute the projection...
ScheduleProjection< GUM_SCALAR > & operator=(const ScheduleProjection< GUM_SCALAR > &)
to be coherent with combinations, forbid copy operators
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual std::pair< long, long > memoryUsage(const ScheduleMultiDim< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, const Schedule< GUM_SCALAR > &schedule)=0
returns the memory consumption used during the projection
Class containing a schedule of operations to perform on multidims.
Definition: schedule.h:68
virtual ScheduleMultiDim< GUM_SCALAR > project(const ScheduleMultiDim< GUM_SCALAR > &table, const Set< const DiscreteVariable * > &del_vars, Schedule< GUM_SCALAR > &schedule)=0
creates and returns the projection of the table over a subset of its vars
<agrum/multidim/multiDimImplementation.h>