cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr Class Reference

#include <cxxtools/pool.h>

Public Member Functions

 Ptr ()
 Ptr (ObjectType *ptr)
 Ptr (const Ptr &ptr)
 ~Ptr ()
Ptroperator= (const Ptr &ptr)
ObjectType * operator-> () const
 The object can be dereferenced like the held object.
ObjectType & operator* () const
 The object can be dereferenced like the held object.
bool operator== (const ObjectType *p) const
bool operator!= (const ObjectType *p) const
bool operator< (const ObjectType *p) const
bool operator! () const
 operator bool () const
ObjectType * getPointer ()
const ObjectType * getPointer () const
 operator ObjectType * ()
 operator const ObjectType * () const
void setPool (Pool *p)
void release ()

Constructor & Destructor Documentation

template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::Ptr ( )
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::Ptr ( ObjectType *  ptr)
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::Ptr ( const Ptr ptr)
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::~Ptr ( )
inline

Member Function Documentation

template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
ObjectType* cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::getPointer ( )
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
const ObjectType* cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::getPointer ( ) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator bool ( ) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator const ObjectType * ( ) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator ObjectType * ( )
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
bool cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator! ( ) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
bool cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator!= ( const ObjectType *  p) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
ObjectType& cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator* ( ) const
inline

The object can be dereferenced like the held object.

template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
ObjectType* cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator-> ( ) const
inline

The object can be dereferenced like the held object.

template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
bool cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator< ( const ObjectType *  p) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
Ptr& cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator= ( const Ptr ptr)
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
bool cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::operator== ( const ObjectType *  p) const
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
void cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::release ( )
inline
template<typename ObjectType , typename CreatorType = DefaultCreator<ObjectType>, template< class > class OwnershipPolicy = RefLinked, template< class > class DestroyPolicy = DeletePolicy>
void cxxtools::Pool< ObjectType, CreatorType, OwnershipPolicy, DestroyPolicy >::Ptr::setPool ( Pool p)
inline

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