BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsltf::BitwiseCopyableTestType Class Reference

#include <bsltf_bitwisecopyabletesttype.h>

Detailed Description

This unconstrained (value-semantic) attribute class defines the bsl::is_trivially_copyable trait and does not allocate memory. See the Attributes section for information on the class attributes.

See bsltf_bitwisecopyabletesttype

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (BitwiseCopyableTestType, bslmf::IsBitwiseCopyable)
 
 BitwiseCopyableTestType ()
 
 BitwiseCopyableTestType (int data)
 
 BitwiseCopyableTestType (const BitwiseCopyableTestType &original)=default
 
 ~BitwiseCopyableTestType ()=default
 
BitwiseCopyableTestTypeoperator= (const BitwiseCopyableTestType &rhs)=default
 
void setData (int value)
 
int data () const
 

Constructor & Destructor Documentation

◆ BitwiseCopyableTestType() [1/3]

bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType ( )
inline

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

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

◆ BitwiseCopyableTestType() [2/3]

bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType ( int  data)
inlineexplicit

Create a BitwiseCopyableTestType object having the specified data attribute value.

◆ BitwiseCopyableTestType() [3/3]

bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType ( const BitwiseCopyableTestType original)
default

Create a 'BitwiseCopyableTestType' object having the same value as the specified 'original' object.

◆ ~BitwiseCopyableTestType()

bsltf::BitwiseCopyableTestType::~BitwiseCopyableTestType ( )
default

Destroy this object.

Note
Note that this destructor is neither declared nor defined because this type is trivially copyable.

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

bsltf::BitwiseCopyableTestType::BSLMF_NESTED_TRAIT_DECLARATION ( BitwiseCopyableTestType  ,
bslmf::IsBitwiseCopyable   
)

◆ data()

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

Return the value of the data attribute of this object.

◆ operator=()

BitwiseCopyableTestType & bsltf::BitwiseCopyableTestType::operator= ( const BitwiseCopyableTestType rhs)
default

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

◆ setData()

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

Set the data attribute of this object to the specified value.


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