BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf::NonTypicalOverloadsTestType Class Reference

#include <bsltf_nontypicaloverloadstesttype.h>

Public Member Functions

 NonTypicalOverloadsTestType ()
 
 NonTypicalOverloadsTestType (int data)
 
 NonTypicalOverloadsTestType (const NonTypicalOverloadsTestType &original)
 
 ~NonTypicalOverloadsTestType ()
 
NonTypicalOverloadsTestTypeoperator= (const NonTypicalOverloadsTestType &rhs)
 
void setData (int value)
 Set the data attribute of this object to the specified value.
 
int data () const
 Return the value of the data attribute of this object.
 

Static Public Member Functions

static void * operator new (std::size_t size)
 Overload operator new and assert this method is not called.
 
static void * operator new (std::size_t size, void *ptr)
 Overload in place new and assert this method is not called.
 
static void operator delete (void *ptr)
 
static void operator delete (void *ptr, void *)
 

Detailed Description

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 bsltf_nontypicaloverloadstesttype

Constructor & Destructor Documentation

◆ NonTypicalOverloadsTestType() [1/3]

bsltf::NonTypicalOverloadsTestType::NonTypicalOverloadsTestType ( )
inline

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

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

◆ NonTypicalOverloadsTestType() [2/3]

bsltf::NonTypicalOverloadsTestType::NonTypicalOverloadsTestType ( int  data)
inlineexplicit

Create a NonTypicalOverloadsTestType object having the specified data attribute value.

◆ NonTypicalOverloadsTestType() [3/3]

bsltf::NonTypicalOverloadsTestType::NonTypicalOverloadsTestType ( const NonTypicalOverloadsTestType original)
inline

Create a NonTypicalOverloadsTestType object having the same value as the specified original object.

◆ ~NonTypicalOverloadsTestType()

bsltf::NonTypicalOverloadsTestType::~NonTypicalOverloadsTestType ( )
inline

Member Function Documentation

◆ data()

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

◆ operator delete() [1/2]

void bsltf::NonTypicalOverloadsTestType::operator delete ( void *  ptr)
inlinestatic

◆ operator delete() [2/2]

void bsltf::NonTypicalOverloadsTestType::operator delete ( void *  ptr,
void *   
)
inlinestatic

◆ operator new() [1/2]

void * bsltf::NonTypicalOverloadsTestType::operator new ( std::size_t  size)
inlinestatic

◆ operator new() [2/2]

void * bsltf::NonTypicalOverloadsTestType::operator new ( std::size_t  size,
void *  ptr 
)
inlinestatic

◆ operator=()

NonTypicalOverloadsTestType & bsltf::NonTypicalOverloadsTestType::operator= ( const NonTypicalOverloadsTestType rhs)
inline

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

◆ setData()

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

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