Quick Links: |
#include <bsltf_nontypicaloverloadstesttype.h>
Public Member Functions | |
NonTypicalOverloadsTestType () | |
NonTypicalOverloadsTestType (int data) | |
NonTypicalOverloadsTestType (const NonTypicalOverloadsTestType &original) | |
~NonTypicalOverloadsTestType () | |
NonTypicalOverloadsTestType & | operator= (const NonTypicalOverloadsTestType &rhs) |
void | setData (int value) |
int | data () const |
Static Public Member Functions | |
static void * | operator new (std::size_t size) |
static void * | operator new (std::size_t size, void *ptr) |
static void | operator delete (void *ptr) |
static void | operator delete (void *ptr, void *) |
This unconstrained (value-semantic) attribute class ensures that the operator new member and operator delete member never gets called by overloading and asserting in them. See the Attributes section under @DESCRIPTION in the component-level documentation for information on the class attributes.
See Component bsltf_nontypicaloverloadstesttype
bsltf::NonTypicalOverloadsTestType::NonTypicalOverloadsTestType | ( | ) |
Create a NonTypicalOverloadsTestType
object having the (default) attribute values:
data() == 0
bsltf::NonTypicalOverloadsTestType::NonTypicalOverloadsTestType | ( | int | data | ) | [explicit] |
Create a NonTypicalOverloadsTestType
object having the specified data
attribute value.
bsltf::NonTypicalOverloadsTestType::NonTypicalOverloadsTestType | ( | const NonTypicalOverloadsTestType & | original | ) |
Create a NonTypicalOverloadsTestType
object having the same value as the specified original
object.
bsltf::NonTypicalOverloadsTestType::~NonTypicalOverloadsTestType | ( | ) |
Destroy this object.
static void* bsltf::NonTypicalOverloadsTestType::operator new | ( | std::size_t | size | ) | [static] |
Overload operator new
and assert this method is not called.
static void* bsltf::NonTypicalOverloadsTestType::operator new | ( | std::size_t | size, | |
void * | ptr | |||
) | [static] |
Overload in place new
and assert this method is not called.
static void bsltf::NonTypicalOverloadsTestType::operator delete | ( | void * | ptr | ) | [static] |
Overload operator delete
and assert this method is not called.
static void bsltf::NonTypicalOverloadsTestType::operator delete | ( | void * | ptr, | |
void * | ||||
) | [static] |
Overload in place operator delete
and assert this method is not called. Not used but required to avoid compiler warnings (MSVC).
NonTypicalOverloadsTestType& bsltf::NonTypicalOverloadsTestType::operator= | ( | const NonTypicalOverloadsTestType & | rhs | ) |
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
void bsltf::NonTypicalOverloadsTestType::setData | ( | int | value | ) |
Set the data
attribute of this object to the specified value
.
int bsltf::NonTypicalOverloadsTestType::data | ( | ) | const |
Return the value of the data
attribute of this object.