BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlcc::ObjectPool_GeneralProxy< TYPE > Class Template Reference

#include <bdlcc_objectpool.h>

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 ()
 Destroy this proxy and the underlying object.
 
TYPE & object ()
 Return a reference to the modifiable object held by this proxy.
 

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 bdlcc_objectpool

Constructor & Destructor Documentation

◆ ObjectPool_GeneralProxy() [1/2]

template<class TYPE >
bdlcc::ObjectPool_GeneralProxy< TYPE >::ObjectPool_GeneralProxy ( bslma::Allocator basicAllocator)
inlineexplicit

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.

◆ ObjectPool_GeneralProxy() [2/2]

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

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.

◆ ~ObjectPool_GeneralProxy()

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

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

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

◆ object()

template<class TYPE >
TYPE & bdlcc::ObjectPool_GeneralProxy< TYPE >::object ( )
inline

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