Mixin class to attach a mark that is shared among many instances.
More...
#include <Unmarkable.h>
|
| | Unmarkable (const T &obj, bool *isMarked) |
| | Mixin class to make an object unmarkable (the mark information is saved - but never used in the tree by intention)
|
| |
| bool | isMarked () const |
| | Check if the object has been marked. As we do not want this object to be marked, just return false.
|
| |
| void | mark (bool mark=true) |
| | Mark this object.
|
| |
| void | unmark () |
| | Unmark this object.
|
| |
|
| using | Super = ScalarToClass<T> |
| | Base class of the mixin.
|
| |
template<class T>
class Belle2::TrackFindingCDC::Unmarkable< T >
Mixin class to attach a mark that is shared among many instances.
Definition at line 21 of file Unmarkable.h.
◆ Super
template<class T>
| using Super = ScalarToClass<T> |
|
private |
◆ Unmarkable()
Mixin class to make an object unmarkable (the mark information is saved - but never used in the tree by intention)
Definition at line 29 of file Unmarkable.h.
30 : Super(obj)
31 , m_isMarked(isMarked)
32 {
33 }
◆ isMarked()
Check if the object has been marked. As we do not want this object to be marked, just return false.
Definition at line 36 of file Unmarkable.h.
37 {
38 return false;
39 }
◆ mark()
template<class T>
| void mark |
( |
bool | mark = true | ) |
|
|
inline |
Mark this object.
Definition at line 42 of file Unmarkable.h.
43 {
44 *m_isMarked = mark;
45 }
◆ unmark()
Unmark this object.
Definition at line 48 of file Unmarkable.h.
49 {
50 *m_isMarked = false;
51 }
◆ m_isMarked
Reference to the shared marks.
Definition at line 55 of file Unmarkable.h.
The documentation for this class was generated from the following file:
- tracking/trackFindingCDC/hough/baseelements/include/Unmarkable.h