Debea Library 1.4.2

InstanceFilter Class Template Reference
[Conversion filters for store tables]

Base class for collection filters that use different class for collection and for collection member. More...

#include <collectionfilter.h>

Inheritance diagram for InstanceFilter:
Collaboration diagram for InstanceFilter:

List of all members.


Public Member Functions

virtual Storeableadd (const S &pToAdd)=0
 Add Storeable object to collection.
virtual Storeablecreate ()
 Create new instance of Storeable dervied object of type S.
 InstanceFilter (M &pMember)
 Constructor.
virtual Storeableput ()
 Insert just loaded Storeable derived class to collection.

Detailed Description

template<typename M, typename S>
class dba::InstanceFilter< M, S >

Base class for collection filters that use different class for collection and for collection member.

Implmements part of CollectionFilterBase interface.


Constructor & Destructor Documentation

InstanceFilter ( M &  pMember  ) 

Constructor.

Parameters:
pMember referecne to collection that filer will modify


Member Function Documentation

virtual Storeable* add ( const S &  pToAdd  )  [pure virtual]

Add Storeable object to collection.

Parameters:
pToAdd object to add
Returns:
pointer to inserted Storeable object

virtual Storeable& create (  )  [virtual]

Create new instance of Storeable dervied object of type S.

Returns:
new instance

Implements CollectionFilterBase.

virtual Storeable* put (  )  [virtual]

Insert just loaded Storeable derived class to collection.

Filters for lists implements this by adding reference to Storeable object returned by create() to contained collection

Returns:
pointer to inserted Storeable object
See also:
InstanceFilter::put implmementation

Implements CollectionFilterBase.


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

Documentation
Quick start
Examples

API Documentation
Class hierarchy
Member index
API Reference
Store filters
Store table macros
Back

Generated by doxygen at Fri Oct 22 23:15:45 2010