GemaCoreLib
The GeMA Core library
Public Types | Public Member Functions | Private Attributes | List of all members
GmPluginLoaderObjMemberAdder< T, U > Class Template Reference

Especialization of GmPluginLoaderAdder to add objects to a container 'U' by calling one member function of this container with a signature that receives a pointer to a 'T' object (that must inherit from GmPluginObject) and returns a boolean indicating wheater the insertion was successfull or not. More...

#include <gmPluginLoader.h>

Inheritance diagram for GmPluginLoaderObjMemberAdder< T, U >:
Inheritance graph
[legend]
Collaboration diagram for GmPluginLoaderObjMemberAdder< T, U >:
Collaboration graph
[legend]

Public Types

typedef bool(U::* UMember) (T *obj)
 Typedef for a member of U that receives an object 'obj' of type T* and inserts 'obj' in the U object, returning true on success.
 

Public Member Functions

 GmPluginLoaderObjMemberAdder (U *obj, UMember f)
 Constructor. Receives as parameters the container and the member function used to add an object to its destination.
 
virtual bool addObject (GmPluginObject *obj)
 Virtual function used to add the object to its destination.
 

Private Attributes

U * _containerObj
 The object to which the data will be added.
 
UMember _containerFunc
 The method from _containerObj that will be called to add data to it.
 

Detailed Description

template<class T, class U>
class GmPluginLoaderObjMemberAdder< T, U >

Especialization of GmPluginLoaderAdder to add objects to a container 'U' by calling one member function of this container with a signature that receives a pointer to a 'T' object (that must inherit from GmPluginObject) and returns a boolean indicating wheater the insertion was successfull or not.


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