Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsltf::NonOptionalAllocTestType Class Reference

#include <bsltf_nonoptionalalloctesttype.h>

List of all members.

Public Member Functions

 NonOptionalAllocTestType (bslma::Allocator *basicAllocator)
 NonOptionalAllocTestType (int data, bslma::Allocator *basicAllocator)
 NonOptionalAllocTestType (const NonOptionalAllocTestType &original, bslma::Allocator *basicAllocator=0)
 ~NonOptionalAllocTestType ()
NonOptionalAllocTestTypeoperator= (const NonOptionalAllocTestType &rhs)
void setData (int value)
int data () const
bslma::Allocatorallocator () const

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 Component bsltf_nonoptionalalloctesttype


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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