CppDelegate::DelegateController< Derived > Class Template Reference

#include <Delegate.h>

List of all members.

Public Member Functions

 DelegateController ()
DataDelegate< Derived > & Delegate ()
void Invoke ()
void operator() ()
virtual ~DelegateController ()

Protected Member Functions

virtual bool Before ()=0
virtual void After ()

Private Attributes

DataDelegate< Derived > dataDelegate


Detailed Description

template<class Derived>
class CppDelegate::DelegateController< Derived >

Definition at line 1862 of file Delegate.h.


Constructor & Destructor Documentation

template<class Derived>
CppDelegate::DelegateController< Derived >::DelegateController (  )  [inline]

Definition at line 1875 of file Delegate.h.

01875 : dataDelegate() {}

template<class Derived>
virtual CppDelegate::DelegateController< Derived >::~DelegateController (  )  [inline, virtual]

Definition at line 1889 of file Delegate.h.

01889 {}


Member Function Documentation

template<class Derived>
virtual bool CppDelegate::DelegateController< Derived >::Before (  )  [protected, pure virtual]

template<class Derived>
virtual void CppDelegate::DelegateController< Derived >::After (  )  [inline, protected, virtual]

Definition at line 1867 of file Delegate.h.

01867 {};

template<class Derived>
DataDelegate<Derived>& CppDelegate::DelegateController< Derived >::Delegate (  )  [inline]

Definition at line 1876 of file Delegate.h.

01876 { return dataDelegate; }

template<class Derived>
void CppDelegate::DelegateController< Derived >::Invoke (  )  [inline]

Definition at line 1878 of file Delegate.h.

01879                 {
01880                         if (Before() )
01881                         {
01882                                 dataDelegate(*((Derived *)this));
01883                                 After();
01884                         }
01885                         
01886                 } // operator ()

template<class Derived>
void CppDelegate::DelegateController< Derived >::operator() (  )  [inline]

Definition at line 1888 of file Delegate.h.

01888 { Invoke(); }


Member Data Documentation

template<class Derived>
DataDelegate<Derived> CppDelegate::DelegateController< Derived >::dataDelegate [private]

Definition at line 1867 of file Delegate.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 15 23:41:50 2007 for AVR C++ Lib (common) by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi