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

#include <bsltf_nontypicaloverloadstesttype.h>

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

Public Member Functions

 NonTypicalOverloadsTestType ()
 
 NonTypicalOverloadsTestType (int data)
 
 NonTypicalOverloadsTestType (const NonTypicalOverloadsTestType &original)
 
 ~NonTypicalOverloadsTestType ()
 
NonTypicalOverloadsTestTypeoperator= (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 *)
 

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:326

◆ 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

Return the value of the data attribute of this object.

◆ 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

Overload operator new and assert this method is not called.

◆ operator new() [2/2]

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

Overload in place new and assert this method is not called.

◆ 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

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


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