BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
ActionAdapter< Adaptee, _Ty > Class Template Reference

#include <Adapter.h>

+ Inheritance diagram for ActionAdapter< Adaptee, _Ty >:

Public Member Functions

 ActionAdapter (Adaptee *anAdaptee, Action< Adaptee, _Ty > anAction)
 
virtual _Ty operator() ()
 
- Public Member Functions inherited from Adapter< int >
 Adapter ()
 
virtual ~Adapter ()
 

Detailed Description

template<class Adaptee, class _Ty = int>
class ActionAdapter< Adaptee, _Ty >

Definition at line 135 of file Adapter.h.

Constructor & Destructor Documentation

◆ ActionAdapter()

template<class Adaptee , class _Ty = int>
ActionAdapter< Adaptee, _Ty >::ActionAdapter ( Adaptee * anAdaptee,
Action< Adaptee, _Ty > anAction )
inline

Definition at line 141 of file Adapter.h.

143 : itsAdaptee(anAdaptee), itsAction(anAction)
144 //## end ActionAdapter::ActionAdapter%894312583.initialization
145 {
146 //## begin ActionAdapter::ActionAdapter%894312583.body preserve=yes
147 //## end ActionAdapter::ActionAdapter%894312583.body
148 }

Member Function Documentation

◆ operator()()

template<class Adaptee , class _Ty = int>
virtual _Ty ActionAdapter< Adaptee, _Ty >::operator() ( void )
inlinevirtual

Implements Adapter< int >.

Definition at line 154 of file Adapter.h.

155 {
156 //## begin ActionAdapter::operator()%894312584.body preserve=yes
157 return itsAction.execute(itsAdaptee);
158 //## end ActionAdapter::operator()%894312584.body
159 }

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