Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsltf::BitwiseCopyableTestType Class Reference

#include <bsltf_bitwisecopyabletesttype.h>

List of all members.

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (BitwiseCopyableTestType, bsl::is_trivially_copyable)
 BitwiseCopyableTestType ()
 BitwiseCopyableTestType (int data)
 ~BitwiseCopyableTestType ()
void setData (int value)
int data () const

Detailed Description

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

See Component bsltf_bitwisecopyabletesttype


Constructor & Destructor Documentation

bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType (  ) 

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

          data() == 0
bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType ( int  data  )  [explicit]

Create a BitwiseCopyableTestType object having the specified data attribute value.

bsltf::BitwiseCopyableTestType::~BitwiseCopyableTestType (  ) 

Destroy this object.


Member Function Documentation

bsltf::BitwiseCopyableTestType::BSLMF_NESTED_TRAIT_DECLARATION ( BitwiseCopyableTestType  ,
bsl::is_trivially_copyable   
)
void bsltf::BitwiseCopyableTestType::setData ( int  value  ) 

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

int bsltf::BitwiseCopyableTestType::data (  )  const

Return the value of the data attribute of this object.


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