Quick Links: |
#include <bsltf_nonoptionalalloctesttype.h>
Public Member Functions | |
NonOptionalAllocTestType (bslma::Allocator *basicAllocator) | |
NonOptionalAllocTestType (int data, bslma::Allocator *basicAllocator) | |
NonOptionalAllocTestType (const NonOptionalAllocTestType &original, bslma::Allocator *basicAllocator=0) | |
~NonOptionalAllocTestType () | |
NonOptionalAllocTestType & | operator= (const NonOptionalAllocTestType &rhs) |
void | setData (int value) |
int | data () const |
bslma::Allocator * | allocator () const |
This unconstrained (value-semantic) attribute class that uses a bslma::Allocator
to allocate memory and defines the type trait bslma::UsesBslmaAllocator
. This class does not provide a default constructor.
See Component bsltf_nonoptionalalloctesttype
bsltf::NonOptionalAllocTestType::NonOptionalAllocTestType | ( | bslma::Allocator * | basicAllocator | ) | [explicit] |
Create a NonOptionalAllocTestType
object having the (default) attribute values using the specified basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
bsltf::NonOptionalAllocTestType::NonOptionalAllocTestType | ( | int | data, | |
bslma::Allocator * | basicAllocator | |||
) | [explicit] |
Create a NonOptionalAllocTestType
object having the specified data
attribute value using the specified a basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
bsltf::NonOptionalAllocTestType::NonOptionalAllocTestType | ( | const NonOptionalAllocTestType & | original, | |
bslma::Allocator * | basicAllocator = 0 | |||
) |
Create a NonOptionalAllocTestType
object having the same value as the specified original
object. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
bsltf::NonOptionalAllocTestType::~NonOptionalAllocTestType | ( | ) |
Destroy this object.
NonOptionalAllocTestType& bsltf::NonOptionalAllocTestType::operator= | ( | const NonOptionalAllocTestType & | rhs | ) |
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
void bsltf::NonOptionalAllocTestType::setData | ( | int | value | ) |
Set the data
attribute of this object to the specified value
.
int bsltf::NonOptionalAllocTestType::data | ( | ) | const |
Return the value of the data
attribute of this object.
bslma::Allocator* bsltf::NonOptionalAllocTestType::allocator | ( | ) | const |
Return the allocator used by this object to supply memory.