GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
GNotifier Class Reference

Definition at line 12 of file GNotifier.h.

Public Member Functions

 ~GNotifier () override
 
void Clear (Option_t *="") override
 
bool Notify () override
 
void Print (Option_t *="") const override
 

Static Public Member Functions

template<typename T >
static void AddCallback (T callback)
 
static void AddCallback (void(*func)())
 
static GNotifierGet ()
 

Private Member Functions

 GNotifier ()
 

Private Attributes

std::vector< std::function< void()> > callbacks
 

Static Private Attributes

static GNotifierfGNotifier = nullptr
 

#include <GNotifier.h>

+ Inheritance diagram for GNotifier:
+ Collaboration diagram for GNotifier:

Constructor & Destructor Documentation

◆ ~GNotifier()

GNotifier::~GNotifier ( )
overridedefault

◆ GNotifier()

GNotifier::GNotifier ( )
private

Definition at line 19 of file GNotifier.cxx.

Referenced by Get().

Member Function Documentation

◆ AddCallback() [1/2]

template<typename T >
static void GNotifier::AddCallback ( callback)
inlinestatic

Definition at line 25 of file GNotifier.h.

References callbacks, and Get().

◆ AddCallback() [2/2]

static void GNotifier::AddCallback ( void(*)()  func)
inlinestatic

Definition at line 30 of file GNotifier.h.

References callbacks, and Get().

◆ Clear()

void GNotifier::Clear ( Option_t *  = "")
inlineoverride

Definition at line 18 of file GNotifier.h.

◆ Get()

GNotifier * GNotifier::Get ( )
static

Definition at line 11 of file GNotifier.cxx.

References fGNotifier, and GNotifier().

Referenced by AddCallback().

◆ Notify()

bool GNotifier::Notify ( )
override

Definition at line 25 of file GNotifier.cxx.

References callbacks.

◆ Print()

void GNotifier::Print ( Option_t *  = "") const
inlineoverride

Definition at line 17 of file GNotifier.h.

Member Data Documentation

◆ callbacks

std::vector<std::function<void()> > GNotifier::callbacks
private

Definition at line 37 of file GNotifier.h.

Referenced by AddCallback(), and Notify().

◆ fGNotifier

GNotifier * GNotifier::fGNotifier = nullptr
staticprivate

Definition at line 40 of file GNotifier.h.

Referenced by Get().