Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlcc::ObjectPool_GeneralProxy< TYPE > Class Template Reference

#include <bdlcc_objectpool.h>

List of all members.

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (ObjectPool_GeneralProxy, bslma::UsesBslmaAllocator)
 ObjectPool_GeneralProxy (bslma::Allocator *basicAllocator)
 ObjectPool_GeneralProxy (const TYPE &other, bslma::Allocator *basicAllocator)
 ~ObjectPool_GeneralProxy ()
TYPE & object ()

Detailed Description

template<class TYPE>
class bdlcc::ObjectPool_GeneralProxy< TYPE >

This private class template provides a default constructor which simply invokes the default constructor of the parameterized TYPE.

See Component bdlcc_objectpool


Constructor & Destructor Documentation

template<class TYPE >
bdlcc::ObjectPool_GeneralProxy< TYPE >::ObjectPool_GeneralProxy ( bslma::Allocator basicAllocator  )  [explicit]

Create a new proxy and a new object of the parameterized TYPE. If TYPE declares the "Uses Allocator" trait, the specified basicAllocator is supplied to its default constructor; otherwise basicAllocator is ignored.

template<class TYPE >
bdlcc::ObjectPool_GeneralProxy< TYPE >::ObjectPool_GeneralProxy ( const TYPE &  other,
bslma::Allocator basicAllocator 
)

Create a new proxy and a new object constructed from the specified other object. If TYPE declares the "Uses Allocator" trait, the specified basicAllocator is supplied to its copy constructor; otherwise basicAllocator is ignored.

template<class TYPE >
bdlcc::ObjectPool_GeneralProxy< TYPE >::~ObjectPool_GeneralProxy (  ) 

Destroy this proxy and the underlying object.


Member Function Documentation

template<class TYPE >
bdlcc::ObjectPool_GeneralProxy< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION ( ObjectPool_GeneralProxy< TYPE >  ,
bslma::UsesBslmaAllocator   
)
template<class TYPE >
TYPE& bdlcc::ObjectPool_GeneralProxy< TYPE >::object (  ) 

Return a reference to the modifiable object held by this proxy.


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