#include <collide_buffers.h>
Public Types | |
typedef unsigned int | size_t |
Public Member Functions | |
memoryBuffer () | |
memoryBuffer (size_t initLen) | |
~memoryBuffer () | |
memoryBuffer (const memoryBuffer &in) | |
memoryBuffer & | operator= (const memoryBuffer &in) |
size_t | length (void) const |
void * | getData (void) |
const void * | getData (void) const |
void | detachBuffer (void) |
void | resize (size_t newlen) |
void | reallocate (size_t newlen) |
Private Member Functions | |
void | setData (const void *toData, size_t toLen) |
Private Attributes | |
void * | data |
size_t | len |
Definition at line 15 of file collide_buffers.h.
typedef unsigned int memoryBuffer::size_t |
Definition at line 17 of file collide_buffers.h.
memoryBuffer::memoryBuffer | ( | ) |
memoryBuffer::memoryBuffer | ( | size_t | initLen | ) |
Definition at line 24 of file collide_buffers.C.
References data, len, and reallocate().
memoryBuffer::~memoryBuffer | ( | ) |
memoryBuffer::memoryBuffer | ( | const memoryBuffer & | in | ) | [inline] |
Definition at line 26 of file collide_buffers.h.
References data, len, and setData().
void memoryBuffer::setData | ( | const void * | toData, | |
size_t | toLen | |||
) | [private] |
Definition at line 36 of file collide_buffers.C.
References data, and reallocate().
Referenced by memoryBuffer(), and operator=().
memoryBuffer& memoryBuffer::operator= | ( | const memoryBuffer & | in | ) | [inline] |
Definition at line 27 of file collide_buffers.h.
References data, len, and setData().
size_t memoryBuffer::length | ( | void | ) | const [inline] |
void* memoryBuffer::getData | ( | void | ) | [inline] |
Definition at line 30 of file collide_buffers.h.
References data.
Referenced by growableBufferT< CollideObjRec >::detachBuffer(), growableBufferT< CollideObjRec >::reallocate(), and growableBufferT< CollideObjRec >::resize().
const void* memoryBuffer::getData | ( | void | ) | const [inline] |
void memoryBuffer::detachBuffer | ( | void | ) | [inline] |
Definition at line 32 of file collide_buffers.h.
Referenced by growableBufferT< CollideObjRec >::detachBuffer().
void memoryBuffer::resize | ( | size_t | newlen | ) |
Definition at line 43 of file collide_buffers.C.
References data, free(), len, malloc(), and reallocate().
Referenced by growableBufferT< CollideObjRec >::resize().
void memoryBuffer::reallocate | ( | size_t | newlen | ) |
Definition at line 54 of file collide_buffers.C.
References data, free(), len, and malloc().
Referenced by memoryBuffer(), growableBufferT< CollideObjRec >::reallocate(), resize(), and setData().
void* memoryBuffer::data [private] |
Definition at line 19 of file collide_buffers.h.
Referenced by detachBuffer(), getData(), memoryBuffer(), operator=(), reallocate(), resize(), setData(), and ~memoryBuffer().
size_t memoryBuffer::len [private] |
Definition at line 20 of file collide_buffers.h.
Referenced by detachBuffer(), length(), memoryBuffer(), operator=(), reallocate(), and resize().