BOSS 8.0.0
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) ()
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
 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 ~ScheduledEvent ()
virtual ~ScheduledEvent ()

Additional Inherited Members

Protected Member Functions inherited from ScheduledEvent
 ScheduledEvent ()
 ScheduledEvent ()
 ScheduledEvent ()
Static Protected Member Functions inherited from ScheduledEvent
static void schedule (double t, ScheduledEvent *next)
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 8 of file Calibration/facilities/include/facilities/SimpleEvent.h.

Member Typedef Documentation

◆ Action [1/3]

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

◆ Action [2/3]

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

◆ Action [3/3]

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

Constructor & Destructor Documentation

◆ SimpleEvent() [1/6]

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

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

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

◆ SimpleEvent() [2/6]

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

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

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

◆ SimpleEvent() [3/6]

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

Definition at line 20 of file InstallArea/x86_64-el9-gcc13-dbg/include/facilities/SimpleEvent.h.

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

◆ SimpleEvent() [4/6]

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

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-dbg/include/facilities/SimpleEvent.h.

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

◆ SimpleEvent() [5/6]

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

Definition at line 20 of file InstallArea/x86_64-el9-gcc13-opt/include/facilities/SimpleEvent.h.

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

◆ SimpleEvent() [6/6]

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

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-opt/include/facilities/SimpleEvent.h.

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

Member Function Documentation

◆ execute() [1/3]

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

Implements ScheduledEvent.

Definition at line 48 of file Calibration/facilities/include/facilities/SimpleEvent.h.

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

◆ execute() [2/3]

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

Implements ScheduledEvent.

◆ execute() [3/3]

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

Implements ScheduledEvent.

◆ name() [1/3]

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

Reimplemented from ScheduledEvent.

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

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

◆ name() [2/3]

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

Reimplemented from ScheduledEvent.

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-dbg/include/facilities/SimpleEvent.h.

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

◆ name() [3/3]

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

Reimplemented from ScheduledEvent.

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-opt/include/facilities/SimpleEvent.h.

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

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