aGrUM  0.16.0
schedulerBasic.h
Go to the documentation of this file.
1 
29 #ifndef GUM_SCHEDULER_BASIC_H
30 #define GUM_SCHEDULER_BASIC_H
31 
33 
34 namespace gum {
35 
36  template < typename GUM_SCALAR >
37  class SchedulerBasic : public Scheduler< GUM_SCALAR > {
38  public:
39  // ############################################################################
41  // ############################################################################
43 
46 
49 
51  virtual ~SchedulerBasic();
52 
54 
56 
58 
59  // ############################################################################
61  // ############################################################################
63 
65 
67 
69 
74 
78  float nbOperations(const Schedule< GUM_SCALAR >&) const;
79 
86  float nbOperations(const Schedule< GUM_SCALAR >&, Size k) const;
87 
89 
96  std::pair< long, long > memoryUsage(const Schedule< GUM_SCALAR >&) const;
97 
110  std::pair< long, long > memoryUsage(const Schedule< GUM_SCALAR >&,
111  Size k) const;
112 
114  };
115 
116 } /* namespace gum */
117 
118 // always include the template implementation
120 
121 #endif /* GUM_SCHEDULER_BASIC_H */
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::pair< long, long > memoryUsage(const Schedule< GUM_SCALAR > &) const
returns the memory consumption used during the execution of a schedule
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
SchedulerBasic< GUM_SCALAR > * newFactory() const
virtual constructor
bool execute(Schedule< GUM_SCALAR > &)
execute all the operations of a given schedule
SchedulerBasic()
default constructor
virtual ~SchedulerBasic()
destructor
Class containing a schedule of operations to perform on multidims.
Definition: schedule.h:68
float nbOperations(const Schedule< GUM_SCALAR > &) const
returns an estimation of the number of elementary operations needed to perform a given schedule ...
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48