GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
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 >:
Collaboration diagram for GmPluginLoaderObjMemberAdder< T, U >:

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.
 
- Public Member Functions inherited from GmPluginLoaderAdder

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.

Member Function Documentation

◆ addObject()

template<class T , class U >
virtual bool GmPluginLoaderObjMemberAdder< T, U >::addObject ( GmPluginObject * obj)
inlinevirtual

Virtual function used to add the object to its destination.

Implements GmPluginLoaderAdder.


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