aGrUM  0.16.0
scheduleOperation_tpl.h
Go to the documentation of this file.
1 
23 #ifndef DOXYGEN_SHOULD_SKIP_THIS
24 
25 # include <agrum/agrum.h>
26 
27 namespace gum {
28 
30  template < typename GUM_SCALAR >
32  static Idx id = 0;
33  return ++id;
34  }
35 
37  template < typename GUM_SCALAR >
39  __type(t), __id(__newId()) {
40  // for debugging purposes
41  GUM_CONSTRUCTOR(ScheduleOperation);
42  }
43 
45  template < typename GUM_SCALAR >
47  const ScheduleOperation< GUM_SCALAR >& from) :
48  __type(from.__type),
49  __id(from.__id) {
50  // for debugging purposes
51  GUM_CONSTRUCTOR(ScheduleOperation);
52  }
53 
55  template < typename GUM_SCALAR >
57  // for debugging purposes
58  GUM_DESTRUCTOR(ScheduleOperation);
59  }
60 
62  template < typename GUM_SCALAR >
63  INLINE ScheduleOperation< GUM_SCALAR >& ScheduleOperation< GUM_SCALAR >::
64  operator=(const ScheduleOperation< GUM_SCALAR >& from) {
65  __type = from.__type;
66  __id = from.__id;
67  return *this;
68  }
69 
71  template < typename GUM_SCALAR >
74  return __type;
75  }
76 
78  template < typename GUM_SCALAR >
80  return __id;
81  }
82 
83 } /* namespace gum */
84 
85 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
Type type() const
returns the name of the operation
Idx __id
the id corresponding to the operation
Type __type
the name of the operation to perform
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Idx id() const
returns the id of the operation
Type
the currently supported types of operations
static Idx __newId()
returns a new distinct ID for each operation
ScheduleOperation(Type t)
default constructor
virtual ~ScheduleOperation()
destructor
ScheduleOperation< GUM_SCALAR > & operator=(const ScheduleOperation< GUM_SCALAR > &)
copy operator