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

#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 ()
 Destroy this object.
 
NonOptionalAllocTestTypeoperator= (const NonOptionalAllocTestType &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 uses a bslma::Allocator to allocate memory and defines the type trait bslma::UsesBslmaAllocator. This class does not provide a default constructor.

See bsltf_nonoptionalalloctesttype

Constructor & Destructor Documentation

◆ NonOptionalAllocTestType() [1/3]

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.

◆ NonOptionalAllocTestType() [2/3]

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.

◆ NonOptionalAllocTestType() [3/3]

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.

◆ ~NonOptionalAllocTestType()

bsltf::NonOptionalAllocTestType::~NonOptionalAllocTestType ( )

Member Function Documentation

◆ allocator()

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

◆ data()

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

◆ operator=()

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.

◆ setData()

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

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