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:

Inheritance graph
[legend]
Collaboration diagram for InstanceFilter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void add (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 void put ()
 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 void add const S &  pToAdd  )  [pure virtual]
 

Add Storeable object to collection.

Parameters:
pToAdd object to add

Implemented in stdDeque, stdList, stdMultiset, stdSet, and stdVector.

virtual Storeable& create  )  [virtual]
 

Create new instance of Storeable dervied object of type S.

Returns:
new instance

Implements CollectionFilterBase.

virtual void 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

See also:
InstanceFilter::put implmementation

Implements CollectionFilterBase.


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

Documentation
Quick start
Examples
Search

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

Generated by doxygen at Sun Nov 9 02:08:21 2008