Quick Links: |
#include <bsltf_allocbitwisemoveabletesttype.h>
Public Member Functions | |
AllocBitwiseMoveableTestType () | |
AllocBitwiseMoveableTestType (bslma::Allocator *basicAllocator) | |
AllocBitwiseMoveableTestType (int data, bslma::Allocator *basicAllocator=0) | |
AllocBitwiseMoveableTestType (const AllocBitwiseMoveableTestType &original, bslma::Allocator *basicAllocator=0) | |
~AllocBitwiseMoveableTestType () | |
AllocBitwiseMoveableTestType & | operator= (const AllocBitwiseMoveableTestType &rhs) |
void | setData (int value) |
int | data () const |
bslma::Allocator * | allocator () const |
This unconstrained (value-semantic) attribute class that is bitwise-moveable, uses a bslma::Allocator
to supply memory, and defines the type traits bslma::UsesBslmaAllocator
and bslmf::IsBitwiseMoveable
. See the Attributes section under @DESCRIPTION in the component-level documentation for information on the class attributes.
See Component bsltf_allocbitwisemoveabletesttype
bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType | ( | ) |
bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType | ( | bslma::Allocator * | basicAllocator | ) | [explicit] |
Create a AllocBitwiseMoveableTestType
object having the (default) attribute values:
data() == 0
Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType | ( | int | data, | |
bslma::Allocator * | basicAllocator = 0 | |||
) | [explicit] |
Create a AllocBitwiseMoveableTestType
object having the specified data
attribute value. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType | ( | const AllocBitwiseMoveableTestType & | original, | |
bslma::Allocator * | basicAllocator = 0 | |||
) |
Create a AllocBitwiseMoveableTestType
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::AllocBitwiseMoveableTestType::~AllocBitwiseMoveableTestType | ( | ) |
Destroy this object.
AllocBitwiseMoveableTestType& bsltf::AllocBitwiseMoveableTestType::operator= | ( | const AllocBitwiseMoveableTestType & | rhs | ) |
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
void bsltf::AllocBitwiseMoveableTestType::setData | ( | int | value | ) |
Set the data
attribute of this object to the specified value
.
int bsltf::AllocBitwiseMoveableTestType::data | ( | ) | const |
Return the value of the data
attribute of this object.
bslma::Allocator* bsltf::AllocBitwiseMoveableTestType::allocator | ( | ) | const |
Return the allocator used by this object to supply memory.