Public Member Functions | |
IPCObject (void) | |
int | getShmID (void) |
void * | operator new (size_t size) throw (std::bad_alloc) |
void * | operator new (size_t size, int shmid) throw (std::bad_alloc) |
void | operator delete (void *obj) |
Protected Attributes | |
int | ipco_shmid |
uint32_t | ipco_magic |
smol::IPCObject::IPCObject | ( | void | ) |
Constructor.
int smol::IPCObject::getShmID | ( | void | ) |
Return the shared memory segment id where this object is stored.
void smol::IPCObject::operator delete | ( | void * | obj | ) |
Free the memory of the object again.
obj | Pointer to the memory to free. |
void* smol::IPCObject::operator new | ( | size_t | size, | |
int | shmid | |||
) | throw (std::bad_alloc) |
This operator allocate a new shared memory segement that will be used as storage for this object. This operator will also setup the ipco_shmid and ipco_magic members.
size | The size of the memory to allocate. | |
shmid | The shared memory id of the object. |
void* smol::IPCObject::operator new | ( | size_t | size | ) | throw (std::bad_alloc) |
This operator allocate a new shared memory segement that will be used as storage for this object. This operator will also setup the ipco_shmid and ipco_magic members.
size | The size of the memory to allocate. |