Belle II Software development
Unmarkable< T > Class Template Reference

Mixin class to attach a mark that is shared among many instances. More...

#include <Unmarkable.h>

Inheritance diagram for Unmarkable< T >:

Public Member Functions

 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.
 

Private Types

using Super = ScalarToClass< T >
 Base class of the mixin.
 

Private Attributes

bool * m_isMarked
 Reference to the shared marks.
 

Detailed Description

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.

Member Typedef Documentation

◆ Super

using Super = ScalarToClass<T>
private

Base class of the mixin.

Definition at line 24 of file Unmarkable.h.

Constructor & Destructor Documentation

◆ Unmarkable()

Unmarkable ( const T &  obj,
bool *  isMarked 
)
inline

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)
32 {
33 }
ScalarToClass< T > Super
Base class of the mixin.
Definition: Unmarkable.h:24
bool * m_isMarked
Reference to the shared marks.
Definition: Unmarkable.h:55
bool isMarked() const
Check if the object has been marked. As we do not want this object to be marked, just return false.
Definition: Unmarkable.h:36

Member Function Documentation

◆ isMarked()

bool isMarked ( ) const
inline

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()

void mark ( bool  mark = true)
inline

Mark this object.

Definition at line 42 of file Unmarkable.h.

43 {
45 }
void mark(bool mark=true)
Mark this object.
Definition: Unmarkable.h:42

◆ unmark()

void unmark ( )
inline

Unmark this object.

Definition at line 48 of file Unmarkable.h.

49 {
50 *m_isMarked = false;
51 }

Member Data Documentation

◆ m_isMarked

bool* m_isMarked
private

Reference to the shared marks.

Definition at line 55 of file Unmarkable.h.


The documentation for this class was generated from the following file: