Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlcc::ObjectPool_DefaultProxy< TYPE > Class Template Reference

#include <bdlcc_objectpool.h>

List of all members.

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 ()
Creator & object ()

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 Component bdlcc_objectpool


Constructor & Destructor Documentation

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

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

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

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

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

Destroy this proxy and the underlying object.


Member Function Documentation

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

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


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