News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

TemplateTNL::FunctorDecl< void(T::*)()> struct Reference

TNL::FunctorDecl< void(T::*)()> Struct Template Reference

#include <tnlMethodDispatch.h>

Inheritance diagram for TNL::FunctorDecl< void(T::*)()>:

TNL::Functor

template<class T>
struct TNL::FunctorDecl< void(T::*)()>


Public Types

typedef void(T::* FuncPtr )()

Public Member Functions

 FunctorDecl (FuncPtr p)
void set ()
void read (BitStream &stream)
 Reads this Functor from a BitStream.

void write (BitStream &stream)
 Writes this Functor to a BitStream.

void dispatch (void *t)
 Dispatch the function represented by the Functor.


Data Fields

FuncPtr ptr

Member Typedef Documentation

template<class T>
typedef void(T::* TNL::FunctorDecl< void(T::*)()>::FuncPtr)()
 


Member Function Documentation

template<class T>
TNL::FunctorDecl< void(T::*)()>::FunctorDecl FuncPtr  p  )  [inline]
 

template<class T>
void TNL::FunctorDecl< void(T::*)()>::set  )  [inline]
 

template<class T>
void TNL::FunctorDecl< void(T::*)()>::read BitStream stream  )  [inline, virtual]
 

Reads this Functor from a BitStream.

Implements TNL::Functor.

template<class T>
void TNL::FunctorDecl< void(T::*)()>::write BitStream stream  )  [inline, virtual]
 

Writes this Functor to a BitStream.

Implements TNL::Functor.

template<class T>
void TNL::FunctorDecl< void(T::*)()>::dispatch void *  t  )  [inline, virtual]
 

Dispatch the function represented by the Functor.

Implements TNL::Functor.


Field Documentation

template<class T>
FuncPtr TNL::FunctorDecl< void(T::*)()>::ptr