BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf::AllocBitwiseMoveableTestType Class Reference

#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 ()
 Destroy this object.
 
AllocBitwiseMoveableTestTypeoperator= (const AllocBitwiseMoveableTestType &rhs)
 
void setData (int value)
 Set the data attribute of this object to the specified value.
 
int data () const
 Return the value of the data attribute of this object.
 
bslma::Allocatorallocator () const
 Return the allocator used by this object to supply memory.
 

Detailed Description

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 bsltf_allocbitwisemoveabletesttype

Constructor & Destructor Documentation

◆ AllocBitwiseMoveableTestType() [1/4]

bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType ( )
inline

◆ AllocBitwiseMoveableTestType() [2/4]

bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType ( bslma::Allocator basicAllocator)
inlineexplicit

Create a AllocBitwiseMoveableTestType object having the (default) attribute values:

data() == 0
int data() const
Return the value of the data attribute of this object.
Definition bsltf_allocbitwisemoveabletesttype.h:290

Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

◆ AllocBitwiseMoveableTestType() [3/4]

bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType ( int  data,
bslma::Allocator basicAllocator = 0 
)
inlineexplicit

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.

◆ AllocBitwiseMoveableTestType() [4/4]

bsltf::AllocBitwiseMoveableTestType::AllocBitwiseMoveableTestType ( const AllocBitwiseMoveableTestType original,
bslma::Allocator basicAllocator = 0 
)
inline

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.

◆ ~AllocBitwiseMoveableTestType()

bsltf::AllocBitwiseMoveableTestType::~AllocBitwiseMoveableTestType ( )
inline

Member Function Documentation

◆ allocator()

bslma::Allocator * bsltf::AllocBitwiseMoveableTestType::allocator ( ) const
inline

◆ data()

int bsltf::AllocBitwiseMoveableTestType::data ( ) const
inline

◆ operator=()

AllocBitwiseMoveableTestType & bsltf::AllocBitwiseMoveableTestType::operator= ( const AllocBitwiseMoveableTestType rhs)
inline

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.

◆ setData()

void bsltf::AllocBitwiseMoveableTestType::setData ( int  value)
inline

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