#include <sharelib.h>
Inheritance diagram for Share::SharedObject:

Static Public Member Functions | |
| static void * | operator new (size_t size) throw (ShareException) |
| static void * | operator new[] (size_t size) throw (ShareException) |
| static void | operator delete (void *addr, size_t) throw () |
| static void | operator delete[] (void *addr, size_t) throw () |
| static void * | alloc (size_t size) throw (ShareException) |
| static void * | alloc (size_t size, size_t count) throw (ShareException) |
| static void | free (void *addr) throw () |
Protected Member Functions | |
| SharedObject () | |
| This is base class only and could not be instantiated direct. | |
| ~SharedObject () | |
| This is base class only and could not be deleted direct. | |
It overload operators new and delete for derived class.
Definition at line 346 of file sharelib.h.
| Share::SharedObject::SharedObject | ( | ) | [inline, protected] |
This is base class only and could not be instantiated direct.
Definition at line 413 of file sharelib.h.
| Share::SharedObject::~SharedObject | ( | ) | [inline, protected] |
| static void* Share::SharedObject::operator new | ( | size_t | size | ) | throw (ShareException) [inline, static] |
Overloaded operator new
| ShareException | Library-specific exception derived from std::bad_alloc |
Definition at line 352 of file sharelib.h.
References alloc().
| static void* Share::SharedObject::operator new[] | ( | size_t | size | ) | throw (ShareException) [inline, static] |
Overloaded operator new[]
| ShareException | Library-specific exception derived from std::bad_alloc |
Definition at line 361 of file sharelib.h.
References alloc().
| static void Share::SharedObject::operator delete | ( | void * | addr, | |
| size_t | ||||
| ) | throw () [inline, static] |
| static void Share::SharedObject::operator delete[] | ( | void * | addr, | |
| size_t | ||||
| ) | throw () [inline, static] |
| static void* Share::SharedObject::alloc | ( | size_t | size | ) | throw (ShareException) [inline, static] |
Allocate block of memory inside shared segment.
| size | Desired size of block to allocate. |
| ShareException | Library-specific exception derived from std::bad_alloc |
Definition at line 388 of file sharelib.h.
References Share::ShareManager::instance().
Referenced by alloc(), operator new(), and operator new[]().
| static void* Share::SharedObject::alloc | ( | size_t | size, | |
| size_t | count | |||
| ) | throw (ShareException) [inline, static] |
Allocate block of memory inside shared segment.
| size | Desired size of block to allocate. |
| ShareException | Library-specific exception derived from std::bad_alloc |
| count | Objects count to allocate. |
Definition at line 398 of file sharelib.h.
References alloc().
| static void Share::SharedObject::free | ( | void * | addr | ) | throw () [inline, static] |
Free block of memory previously allocated by alloc() method.
| addr | Address of block returned by alloc() method. |
Definition at line 407 of file sharelib.h.
References Share::ShareManager::instance().
Referenced by operator delete(), and operator delete[]().
1.5.2