GCGlib  0.04.228
GCG Graphics Engine
gcgCLASS Class Reference

Base class for all GCGlib classes. It is used for better control of object instantiation, memory allocation, and object reuse. Some systems (like DLL versions in Windows) might demand special tasks in order to be stable. All GCGlib classes must be inherited from gcgCLASS. More...

#include <gcg.h>

Inheritance diagram for gcgCLASS:
gcgBASIS1D< NUMTYPE > gcgBASIS2D< NUMTYPE > gcgCACHE gcgDATA gcgDATASTRUCTURE gcgDISCRETE1D< NUMTYPE > gcgEVENTSPERSECOND gcgIMAGE gcgINETPEER gcgINETSERVICE gcgITERATOR gcgLOCK gcgMATRIX< NUMTYPE > gcgPRODUCERCONSUMER gcgQUEUE gcgSEQUENCEDERIVATIVE2D< NUMTYPE > gcgTEXTURE2D gcgTHREAD gcgTHREADPOOL gcgVIDEO

Public Member Functions

void * operator new (size_t size)
 Defines a new operator to be used by instatiations of GCGlib classes instead the global one. More...
 
void * operator new (size_t size, const std::nothrow_t &) throw ()
 Defines a new operator to be used by instantiations of GCGlib classes instead the global one. Returns a NULL pointer instead of throwing an exception if an error occurs. More...
 
void * operator new[] (size_t size)
 Defines a new operator to be used by GCGlib array allocations instead the global one. More...
 
void * operator new[] (size_t size, const std::nothrow_t &) throw ()
 Defines a new operator to be used by vector allocations instead the global one. More...
 
void operator delete (void *p)
 Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator. More...
 
void operator delete (void *p, const std::nothrow_t &) throw ()
 Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator. More...
 
void operator delete[] (void *p)
 Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator. More...
 
void operator delete[] (void *p, const std::nothrow_t &) throw ()
 Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator. More...
 

Detailed Description

Base class for all GCGlib classes. It is used for better control of object instantiation, memory allocation, and object reuse. Some systems (like DLL versions in Windows) might demand special tasks in order to be stable. All GCGlib classes must be inherited from gcgCLASS.

Since
0.02.105

Member Function Documentation

◆ operator delete() [1/2]

void gcgCLASS::operator delete ( void *  p)

Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator.

Parameters
[in]pThe pointer of the memory block to be released.
See also
new
Since
0.02.105

◆ operator delete() [2/2]

void gcgCLASS::operator delete ( void *  p,
const std::nothrow_t &   
)
throw (
)

Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator.

Parameters
[in]pThe pointer of the memory block to be released.
See also
new
Since
0.02.113

◆ operator delete[]() [1/2]

void gcgCLASS::operator delete[] ( void *  p)

Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator.

Parameters
[in]pThe pointer of the memory block to be released.
See also
new[]
Since
0.02.113

◆ operator delete[]() [2/2]

void gcgCLASS::operator delete[] ( void *  p,
const std::nothrow_t &   
)
throw (
)

Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator.

Parameters
[in]pThe pointer of the memory block to be released.
See also
new[]
Since
0.02.113

◆ operator new() [1/2]

void* gcgCLASS::operator new ( size_t  size)

Defines a new operator to be used by instatiations of GCGlib classes instead the global one.

Parameters
[in]sizeThe size in bytes of the object to be allocated.
Returns
the pointer to a new memory block having size bytes. If allocation fails, it throws std::bad_alloc expection to be compliant with ANSI/ISO standards.
See also
delete
Since
0.02.105

◆ operator new() [2/2]

void* gcgCLASS::operator new ( size_t  size,
const std::nothrow_t &   
)
throw (
)

Defines a new operator to be used by instantiations of GCGlib classes instead the global one. Returns a NULL pointer instead of throwing an exception if an error occurs.

Parameters
[in]sizeThe size in bytes of the object to be allocated.
Returns
the pointer to a new memory block having size bytes. If allocation fails, it returns NULL.
See also
delete
Since
0.02.113

◆ operator new[]() [1/2]

void* gcgCLASS::operator new[] ( size_t  size)

Defines a new operator to be used by GCGlib array allocations instead the global one.

Parameters
[in]sizeThe size in bytes of the array to be allocated.
Returns
the pointer to a new memory block having size bytes. If allocation fails, it throws std::bad_alloc exception to be compliant with ANSI/ISO standards.
See also
delete[]
Since
0.02.113

◆ operator new[]() [2/2]

void* gcgCLASS::operator new[] ( size_t  size,
const std::nothrow_t &   
)
throw (
)

Defines a new operator to be used by vector allocations instead the global one.

Parameters
[in]sizeThe size in bytes of the array to be allocated.Returns a NULL pointer instead of throwing an exception if an error occurs.
Returns
the pointer to a new memory block having size bytes. If allocation fails, it returns NULL.
See also
delete[]
Since
0.02.113

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