aGrUM  0.17.2
a C++ library for (probabilistic) graphical models
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 >&
65  const ScheduleOperation< GUM_SCALAR >& from) {
66  __type = from.__type;
67  __id = from.__id;
68  return *this;
69  }
70 
72  template < typename GUM_SCALAR >
75  return __type;
76  }
77 
79  template < typename GUM_SCALAR >
81  return __id;
82  }
83 
84 } /* namespace gum */
85 
86 #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-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
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