Quick Links: |
#include <bsltf_simpletesttype.h>
Public Member Functions | |
SimpleTestType () | |
SimpleTestType (int data) | |
SimpleTestType (const SimpleTestType &original) | |
~SimpleTestType () | |
SimpleTestType & | operator= (const SimpleTestType &rhs) |
void | setData (int value) |
int | data () const |
This unconstrained (value-semantic) attribute class does not allocate memory and does not define any traits. See the Attributes section under @DESCRIPTION in the component-level documentation for information on the class attributes.
See Component bsltf_simpletesttype
bsltf::SimpleTestType::SimpleTestType | ( | ) |
Create a SimpleTestType
object having the (default) attribute values:
data() == 0
bsltf::SimpleTestType::SimpleTestType | ( | int | data | ) | [explicit] |
Create a SimpleTestType
object having the specified data
attribute value.
bsltf::SimpleTestType::SimpleTestType | ( | const SimpleTestType & | original | ) |
Create a SimpleTestType
object having the same value as the specified original
object.
bsltf::SimpleTestType::~SimpleTestType | ( | ) |
Destroy this object.
SimpleTestType& bsltf::SimpleTestType::operator= | ( | const SimpleTestType & | rhs | ) |
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
void bsltf::SimpleTestType::setData | ( | int | value | ) |
Set the data
attribute of this object to the specified value
.
int bsltf::SimpleTestType::data | ( | ) | const |
Return the value of the data
attribute of this object.