Quick Links: |
#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 () | |
TYPE & | object () |
This private class template provides a default constructor which simply invokes the default constructor of the parameterized TYPE
.
See Component bdlcc_objectpool
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.
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.
bdlcc::ObjectPool_GeneralProxy< TYPE >::~ObjectPool_GeneralProxy | ( | ) |
Destroy this proxy and the underlying object.
bdlcc::ObjectPool_GeneralProxy< TYPE >::BSLMF_NESTED_TRAIT_DECLARATION | ( | ObjectPool_GeneralProxy< TYPE > | , | |
bslma::UsesBslmaAllocator | ||||
) |
TYPE& bdlcc::ObjectPool_GeneralProxy< TYPE >::object | ( | ) |
Return a reference to the modifiable object held by this proxy.