CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
SimpleEvent< Receiver > Class Template Reference

#include <SimpleEvent.h>

+ Inheritance diagram for SimpleEvent< Receiver >:

Public Types

typedef void(Receiver::* Action) ()
 
typedef void(Receiver::* Action) ()
 

Public Member Functions

 SimpleEvent (Receiver *r, Action a)
 
 SimpleEvent (Receiver *r, Action a, std::string n)
 
virtual void execute ()
 
virtual std::string name () const
 
 SimpleEvent (Receiver *r, Action a)
 
 SimpleEvent (Receiver *r, Action a, std::string n)
 
virtual void execute ()
 
virtual std::string name () const
 
- Public Member Functions inherited from ScheduledEvent
virtual ~ScheduledEvent ()
 
virtual void execute ()=0
 
virtual std::string name () const
 
virtual ~ScheduledEvent ()
 
virtual void execute ()=0
 
virtual std::string name () const
 

Additional Inherited Members

- Protected Member Functions inherited from ScheduledEvent
 ScheduledEvent ()
 
 ScheduledEvent ()
 
- Static Protected Member Functions inherited from ScheduledEvent
static void schedule (double t, ScheduledEvent *next)
 
static void schedule (double t, ScheduledEvent *next)
 

Detailed Description

template<class Receiver>
class SimpleEvent< Receiver >

Definition at line 9 of file Calibration/facilities/facilities-00-00-04/facilities/SimpleEvent.h.

Member Typedef Documentation

◆ Action [1/2]

template<class Receiver >
typedef void(Receiver::* SimpleEvent< Receiver >::Action) ()

◆ Action [2/2]

template<class Receiver >
typedef void(Receiver::* SimpleEvent< Receiver >::Action) ()

Constructor & Destructor Documentation

◆ SimpleEvent() [1/4]

template<class Receiver >
SimpleEvent< Receiver >::SimpleEvent ( Receiver *  r,
Action  a 
)
inline

Definition at line 20 of file Calibration/facilities/facilities-00-00-04/facilities/SimpleEvent.h.

22:m_receiver(r),m_action(a)
23//## end SimpleEvent::SimpleEvent%249491085.initialization
24{
25
26//## begin SimpleEvent::SimpleEvent%249491085.body preserve=yes
27//## end SimpleEvent::SimpleEvent%249491085.body
28}

◆ SimpleEvent() [2/4]

template<class Receiver >
SimpleEvent< Receiver >::SimpleEvent ( Receiver *  r,
Action  a,
std::string  n 
)
inline

Definition at line 32 of file Calibration/facilities/facilities-00-00-04/facilities/SimpleEvent.h.

33: m_receiver(r), m_action(a), m_name(n){};
const Int_t n

◆ SimpleEvent() [3/4]

template<class Receiver >
SimpleEvent< Receiver >::SimpleEvent ( Receiver *  r,
Action  a 
)
inline

Definition at line 20 of file InstallArea/include/facilities/facilities/SimpleEvent.h.

22:m_receiver(r),m_action(a)
23//## end SimpleEvent::SimpleEvent%249491085.initialization
24{
25
26//## begin SimpleEvent::SimpleEvent%249491085.body preserve=yes
27//## end SimpleEvent::SimpleEvent%249491085.body
28}

◆ SimpleEvent() [4/4]

template<class Receiver >
SimpleEvent< Receiver >::SimpleEvent ( Receiver *  r,
Action  a,
std::string  n 
)
inline

Definition at line 32 of file InstallArea/include/facilities/facilities/SimpleEvent.h.

33: m_receiver(r), m_action(a), m_name(n){};

Member Function Documentation

◆ execute() [1/2]

template<class Receiver >
void SimpleEvent< Receiver >::execute
inlinevirtual

Implements ScheduledEvent.

Definition at line 49 of file Calibration/facilities/facilities-00-00-04/facilities/SimpleEvent.h.

49 {
50//## begin SimpleEvent::execute%478434479.body preserve=yes
51 if (m_receiver) (m_receiver->*m_action)();
52//## end SimpleEvent::execute%478434479.body
53}

◆ execute() [2/2]

template<class Receiver >
virtual void SimpleEvent< Receiver >::execute ( )
virtual

Implements ScheduledEvent.

◆ name() [1/2]

template<class Receiver >
virtual std::string SimpleEvent< Receiver >::name ( ) const
inlinevirtual

Reimplemented from ScheduledEvent.

Definition at line 38 of file Calibration/facilities/facilities-00-00-04/facilities/SimpleEvent.h.

38 {
39 return !m_name.empty()? m_name : ScheduledEvent::name();}
virtual std::string name() const

◆ name() [2/2]

template<class Receiver >
virtual std::string SimpleEvent< Receiver >::name ( ) const
inlinevirtual

Reimplemented from ScheduledEvent.

Definition at line 38 of file InstallArea/include/facilities/facilities/SimpleEvent.h.

38 {
39 return !m_name.empty()? m_name : ScheduledEvent::name();}

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