ActionAdapter< Adaptee, _Ty > Class Template Reference

#include <Adapter.h>

Inheritance diagram for ActionAdapter< Adaptee, _Ty >:

Adapter< _Ty > List of all members.

Public Member Functions

 ActionAdapter (Adaptee *anAdaptee, Action< Adaptee, _Ty > anAction)
virtual _Ty operator() ()

Private Attributes

Adaptee * itsAdaptee
Action< Adaptee, _Ty > itsAction

Detailed Description

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

Definition at line 135 of file Adapter.h.


Constructor & Destructor Documentation

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.

00143         : itsAdaptee(anAdaptee), itsAction(anAction)
00144         //## end ActionAdapter::ActionAdapter%894312583.initialization
00145       {
00146         //## begin ActionAdapter::ActionAdapter%894312583.body preserve=yes
00147         //## end ActionAdapter::ActionAdapter%894312583.body
00148       }


Member Function Documentation

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

Implements Adapter< _Ty >.

Definition at line 154 of file Adapter.h.

References Action< Actor, _Ty >::execute(), ActionAdapter< Adaptee, _Ty >::itsAction, and ActionAdapter< Adaptee, _Ty >::itsAdaptee.

00155       {
00156         //## begin ActionAdapter::operator()%894312584.body preserve=yes
00157         return itsAction.execute(itsAdaptee);
00158         //## end ActionAdapter::operator()%894312584.body
00159       }


Member Data Documentation

template<class Adaptee, class _Ty = int>
Action<Adaptee, _Ty> ActionAdapter< Adaptee, _Ty >::itsAction [private]

Definition at line 178 of file Adapter.h.

Referenced by ActionAdapter< Adaptee, _Ty >::operator()().

template<class Adaptee, class _Ty = int>
Adaptee* ActionAdapter< Adaptee, _Ty >::itsAdaptee [private]

Definition at line 169 of file Adapter.h.

Referenced by ActionAdapter< Adaptee, _Ty >::operator()().


Generated on Tue Nov 29 23:17:26 2016 for BOSS_7.0.2 by  doxygen 1.4.7