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

#include <bdlcc_objectpool.h>

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (ObjectPool_DefaultProxy, bslma::UsesBslmaAllocator)
 
 ObjectPool_DefaultProxy (bslma::Allocator *basicAllocator)
 
 ObjectPool_DefaultProxy (const Creator &rhs, bslma::Allocator *basicAllocator)
 
 ~ObjectPool_DefaultProxy ()
 Destroy this proxy and the underlying object.
 
Creatorobject ()
 

Detailed Description

template<class TYPE>
class bdlcc::ObjectPool_DefaultProxy< TYPE >

This private class template provides a default constructor that creates a proxied bsl::function object that invokes the default constructor of the parameterized TYPE with placement new.

See bdlcc_objectpool

Constructor & Destructor Documentation

◆ ObjectPool_DefaultProxy() [1/2]

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

Create a new proxy for a function object which invokes the default constructor of TYPE. Use the specified basicAllocator to supply memory.

◆ ObjectPool_DefaultProxy() [2/2]

template<class TYPE >
bdlcc::ObjectPool_DefaultProxy< TYPE >::ObjectPool_DefaultProxy ( const Creator rhs,
bslma::Allocator basicAllocator 
)
inline

Create a proxy for a newly created function object constructed from the specified rhs creator. Use the specified basicAllocator to supply memory.

◆ ~ObjectPool_DefaultProxy()

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

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

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

◆ object()

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

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


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