MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for small objects with value-type semantics - offers fast allocations and deallocations. More...
#include <mdsSmallObject.h>
Public Types | |
typedef CLibraryLockableClass < CSmallObjectBase< C, M, A > >::CLock | tLock |
Lock type. | |
Static Public Member Functions | |
static void | lock () |
Locks the object. | |
static void | operator delete (void *p, std::size_t Size) |
Deallocates small object. | |
static void | operator delete (void *p, void *pPlace) |
Placement single-object delete merely calls global placement delete. | |
static void | operator delete[] (void *p, std::size_t Size) |
Deallocates array-object. | |
static void | operator delete[] (void *p, void *pPlace) |
Placement array-object delete merely calls global placement delete. | |
static void * | operator new (std::size_t Size) |
Allocates a small object. | |
static void * | operator new (std::size_t Size, void *pPlace) |
Placement single-object new merely calls global placement new. | |
static void * | operator new[] (std::size_t Size) |
Allocates array-object. | |
static void * | operator new[] (std::size_t Size, void *pPlace) |
Placement array-object new merely calls global placement new. | |
static void | unlock () |
Locks the object. | |
Protected Member Functions | |
CSmallValueObject () | |
Protected default constructor. | |
CSmallValueObject (const CSmallValueObject &) | |
Protected copy constructor. | |
CSmallValueObject & | operator= (const CSmallValueObject &) |
Protected assignment operator. | |
~CSmallValueObject () | |
Protected destructor. |
Base class for small objects with value-type semantics - offers fast allocations and deallocations.
Destructor is non-virtual, inline, and protected to prevent unintentional destruction through base class. Default constructor is trivial.
typedef CLibraryLockableClass<CSmallObjectBase<C,M,A> >::CLock mds::base::CSmallObjectBase< C, M, A >::tLock [inherited] |
Lock type.
mds::base::CSmallValueObject< C, M, A >::CSmallValueObject | ( | ) | [protected] |
Protected default constructor.
mds::base::CSmallValueObject< C, M, A >::~CSmallValueObject | ( | ) | [protected] |
Protected destructor.
mds::base::CSmallValueObject< C, M, A >::CSmallValueObject | ( | const CSmallValueObject< C, M, A > & | ) | [protected] |
Protected copy constructor.
static void mds::base::CLockableClass< CSmallObjectBase< C, M, A > >::lock | ( | ) | [static, inherited] |
Locks the object.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete | ( | void * | p, |
std::size_t | Size | ||
) | [static, inherited] |
Deallocates small object.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete | ( | void * | p, |
void * | pPlace | ||
) | [static, inherited] |
Placement single-object delete merely calls global placement delete.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete[] | ( | void * | p, |
std::size_t | Size | ||
) | [static, inherited] |
Deallocates array-object.
static void mds::base::CSmallObjectBase< C, M, A >::operator delete[] | ( | void * | p, |
void * | pPlace | ||
) | [static, inherited] |
Placement array-object delete merely calls global placement delete.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new | ( | std::size_t | Size | ) | [static, inherited] |
Allocates a small object.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new | ( | std::size_t | Size, |
void * | pPlace | ||
) | [static, inherited] |
Placement single-object new merely calls global placement new.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new[] | ( | std::size_t | Size | ) | [static, inherited] |
Allocates array-object.
static void* mds::base::CSmallObjectBase< C, M, A >::operator new[] | ( | std::size_t | Size, |
void * | pPlace | ||
) | [static, inherited] |
Placement array-object new merely calls global placement new.
CSmallValueObject& mds::base::CSmallValueObject< C, M, A >::operator= | ( | const CSmallValueObject< C, M, A > & | ) | [protected] |
Protected assignment operator.
static void mds::base::CLockableClass< CSmallObjectBase< C, M, A > >::unlock | ( | ) | [static, inherited] |
Locks the object.