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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

template<class Receiver>
class SimpleEvent< Receiver >

Definition at line 9 of file SimpleEvent.h.

Member Typedef Documentation

◆ Action

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

Definition at line 17 of file SimpleEvent.h.

Constructor & Destructor Documentation

◆ SimpleEvent() [1/2]

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

Definition at line 20 of file 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/2]

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

Definition at line 32 of file SimpleEvent.h.

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

Member Function Documentation

◆ execute()

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

Implements ScheduledEvent.

Definition at line 49 of file 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}

◆ name()

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

Reimplemented from ScheduledEvent.

Definition at line 38 of file SimpleEvent.h.

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

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