dmlite  0.6
Public Member Functions | List of all members
dmlite::PoolElementFactory< E > Class Template Referenceabstract

#include <poolcontainer.h>

Public Member Functions

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

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

◆ ~PoolElementFactory()

template<class E>
virtual dmlite::PoolElementFactory< E >::~PoolElementFactory ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ create()

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

Creates an element.

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

◆ destroy()

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

Destroys an element.

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

◆ isValid()

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: