dmlite::PoolElementFactory< E > Class Template Reference

#include <poolcontainer.h>

List of all members.

Public Member Functions

virtual ~PoolElementFactory ()
 Destructor.
virtual E create ()=0
 Creates an element.
virtual void destroy (E)=0
 Destroys an element.
virtual bool isValid (E)=0
 Check it is still valid.

Detailed Description

template<class E>
class dmlite::PoolElementFactory< E >

Classes implementing this interface creates the actual element since the pool is agnosstic


Constructor & Destructor Documentation

template<class E>
virtual dmlite::PoolElementFactory< E >::~PoolElementFactory (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class E>
virtual E dmlite::PoolElementFactory< E >::create (  )  [pure virtual]

Creates an element.

Implemented in dmlite::MySqlConnectionFactory, and dmlite::DavixCtxFactory.

template<class E>
virtual void dmlite::PoolElementFactory< E >::destroy (  )  [pure virtual]

Destroys an element.

Implemented in dmlite::MySqlConnectionFactory, and dmlite::DavixCtxFactory.

template<class E>
virtual bool dmlite::PoolElementFactory< E >::isValid (  )  [pure virtual]

Check it is still valid.

Implemented in dmlite::MySqlConnectionFactory, and dmlite::DavixCtxFactory.


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

Generated on 5 Nov 2020 for dmlite by  doxygen 1.6.1