Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::ClassProcedure1< P1, ClassType > Class Template Reference

A class member function. More...

#include <vcf/FoundationKit/Delegates.h>

Inheritance diagram for VCF::ClassProcedure1< P1, ClassType >:

VCF::Procedure1< P1 > VCF::CallBack VCF::Object VCF::FunctionTypeInfo List of all members.

Public Types

typedef void(ClassType::* ClassFuncPtr )(P1)

Public Member Functions

 ClassProcedure1 ()
 ClassProcedure1 (ClassType *src, ClassFuncPtr funcPtr)
 ClassProcedure1 (ClassType *src, ClassFuncPtr funcPtr, const String &s)
virtual ObjectgetSource ()
 A callback may, or may not, have a source.
virtual void invoke (P1 p1)
virtual void beginInvoke (P1 p1, AsyncResult *initialResult, AsyncCallback *callback, AsyncReturns *returnObject)

Public Attributes

ClassFuncPtr classFuncPtr
ClassType * funcSrc

Protected Member Functions

virtual ~ClassProcedure1 ()

Detailed Description

template<typename P1, typename ClassType>
class VCF::ClassProcedure1< P1, ClassType >

A class member function.

The callback takes one argument of type P1 for a class type of ClassType.


Member Typedef Documentation

template<typename P1, typename ClassType>
typedef void(ClassType::* VCF::ClassProcedure1< P1, ClassType >::ClassFuncPtr)(P1)
 


Constructor & Destructor Documentation

template<typename P1, typename ClassType>
VCF::ClassProcedure1< P1, ClassType >::ClassProcedure1  )  [inline]
 

template<typename P1, typename ClassType>
VCF::ClassProcedure1< P1, ClassType >::ClassProcedure1 ClassType *  src,
ClassFuncPtr  funcPtr
[inline]
 

template<typename P1, typename ClassType>
VCF::ClassProcedure1< P1, ClassType >::ClassProcedure1 ClassType *  src,
ClassFuncPtr  funcPtr,
const String s
[inline]
 

template<typename P1, typename ClassType>
virtual VCF::ClassProcedure1< P1, ClassType >::~ClassProcedure1  )  [inline, protected, virtual]
 


Member Function Documentation

template<typename P1, typename ClassType>
void VCF::ClassProcedure1< P1, ClassType >::beginInvoke P1  p1,
AsyncResult initialResult,
AsyncCallback callback,
AsyncReturns returnObject
[inline, virtual]
 

Reimplemented from VCF::Procedure1< P1 >.

template<typename P1, typename ClassType>
virtual Object* VCF::ClassProcedure1< P1, ClassType >::getSource  )  [inline, virtual]
 

A callback may, or may not, have a source.

In addition, it's possible that the source is *not* an Object based type. For this reason this function is made virtual so that derived classes can properly implement it and return a valid source point if possible.

Returns:
Object the object that "owns" the callback and will delete it when the object is deleted. This means that the callback;s lifetime is that of it's owning object unless it's explicitly removed from the object and deleted.

Reimplemented from VCF::CallBack.

template<typename P1, typename ClassType>
virtual void VCF::ClassProcedure1< P1, ClassType >::invoke P1  p1  )  [inline, virtual]
 

Reimplemented from VCF::Procedure1< P1 >.


Member Data Documentation

template<typename P1, typename ClassType>
ClassFuncPtr VCF::ClassProcedure1< P1, ClassType >::classFuncPtr
 

template<typename P1, typename ClassType>
ClassType* VCF::ClassProcedure1< P1, ClassType >::funcSrc
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information