BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
Action< Actor, _Ty > Class Template Reference

#include <Adapter.h>

Public Types

typedef _Ty(Actor::* ActionFunction) ()
 

Public Member Functions

 Action (ActionFunction anAction)
 
_Ty execute (Actor *anActor)
 

Detailed Description

template<class Actor, class _Ty = int>
class Action< Actor, _Ty >

Definition at line 79 of file Adapter.h.

Member Typedef Documentation

◆ ActionFunction

template<class Actor , class _Ty = int>
typedef _Ty(Actor::* Action< Actor, _Ty >::ActionFunction) ()

Definition at line 88 of file Adapter.h.

Constructor & Destructor Documentation

◆ Action()

template<class Actor , class _Ty = int>
Action< Actor, _Ty >::Action ( ActionFunction  anAction)
inline

Definition at line 92 of file Adapter.h.

93 : itsFunction(anAction)
94 {
95 }

Member Function Documentation

◆ execute()

template<class Actor , class _Ty = int>
_Ty Action< Actor, _Ty >::execute ( Actor *  anActor)
inline

Definition at line 101 of file Adapter.h.

102 {
103 //## begin Action::execute%894312582.body preserve=yes
104 return (anActor->*itsFunction)();
105 //## end Action::execute%894312582.body
106 }

Referenced by Commissioner< Commissionee, Criteria >::select().


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