moab
|
#include <TupleList.hpp>
Public Member Functions | |
buffer (size_t sz) | |
buffer () | |
~buffer () | |
void | buffer_init_ (size_t sz, const char *file) |
void | buffer_reserve_ (size_t min, const char *file) |
void | reset () |
Public Attributes | |
size_t | buffSize |
char * | ptr |
Definition at line 114 of file TupleList.hpp.
moab::TupleList::buffer::buffer | ( | size_t | sz | ) |
Constructor which sets an initial capacity of the buffer
Definition at line 21 of file TupleList.cpp.
{ ptr = NULL; buffSize = 0; this->buffer_init_(sz, __FILE__); }
Default constructor (Note: buffer must be initialized before use!)
Definition at line 28 of file TupleList.cpp.
moab::TupleList::buffer::~buffer | ( | ) | [inline] |
Definition at line 128 of file TupleList.hpp.
{ this->reset(); };
void moab::TupleList::buffer::buffer_init_ | ( | size_t | sz, |
const char * | file | ||
) |
void moab::TupleList::buffer::buffer_reserve_ | ( | size_t | min, |
const char * | file | ||
) |
Ensures that the buffer has at least a capacity of min
Definition at line 43 of file TupleList.cpp.
void moab::TupleList::buffer::reset | ( | ) |
Frees any allocated memory used by the buffer
Definition at line 59 of file TupleList.cpp.
Definition at line 117 of file TupleList.hpp.
Definition at line 118 of file TupleList.hpp.