Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Static Public Member Functions

bsltf::NonTypicalOverloadsTestType Class Reference

#include <bsltf_nontypicaloverloadstesttype.h>

List of all members.

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 *)

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 Component bsltf_nontypicaloverloadstesttype


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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