PPL Logo

memoryBuffer Class Reference

#include <collide_buffers.h>

Collaboration diagram for memoryBuffer:

Collaboration graph
[legend]

Public Types

typedef unsigned int size_t

Public Member Functions

 memoryBuffer ()
 memoryBuffer (size_t initLen)
 ~memoryBuffer ()
 memoryBuffer (const memoryBuffer &in)
memoryBufferoperator= (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

Detailed Description

Definition at line 15 of file collide_buffers.h.


Member Typedef Documentation

typedef unsigned int memoryBuffer::size_t

Definition at line 17 of file collide_buffers.h.


Constructor & Destructor Documentation

memoryBuffer::memoryBuffer (  ) 

Definition at line 19 of file collide_buffers.C.

References data, and len.

memoryBuffer::memoryBuffer ( size_t  initLen  ) 

Definition at line 24 of file collide_buffers.C.

References data, len, and reallocate().

Here is the call graph for this function:

memoryBuffer::~memoryBuffer (  ) 

Definition at line 30 of file collide_buffers.C.

References data, and free().

Here is the call graph for this function:

memoryBuffer::memoryBuffer ( const memoryBuffer in  )  [inline]

Definition at line 26 of file collide_buffers.h.

References data, len, and setData().

Here is the call graph for this function:


Member Function Documentation

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=().

Here is the call graph for this function:

Here is the caller graph for this function:

memoryBuffer& memoryBuffer::operator= ( const memoryBuffer in  )  [inline]

Definition at line 27 of file collide_buffers.h.

References data, len, and setData().

Here is the call graph for this function:

size_t memoryBuffer::length ( void   )  const [inline]

Definition at line 29 of file collide_buffers.h.

References len.

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().

Here is the caller graph for this function:

const void* memoryBuffer::getData ( void   )  const [inline]

Definition at line 31 of file collide_buffers.h.

References data.

void memoryBuffer::detachBuffer ( void   )  [inline]

Definition at line 32 of file collide_buffers.h.

References data, and len.

Referenced by growableBufferT< CollideObjRec >::detachBuffer().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

void* memoryBuffer::data [private]

Definition at line 20 of file collide_buffers.h.

Referenced by detachBuffer(), length(), memoryBuffer(), operator=(), reallocate(), and resize().


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

Generated on Mon Sep 21 08:27:14 2020 for Charm++ by  doxygen 1.5.5