#include <mitsuba/bidir/mempool.h>
mitsuba::MemoryPool::MemoryPool |
( |
size_t |
nEntries = 128 | ) |
|
|
inline |
Create a new memory pool with aninitial set of 128 entries.
mitsuba::MemoryPool::~MemoryPool |
( |
| ) |
|
|
inline |
Destruct the memory pool and release all entries.
PathEdge* mitsuba::MemoryPool::allocEdge |
( |
| ) |
|
|
inline |
size_t mitsuba::MemoryPool::edgeSize |
( |
| ) |
|
|
inline |
Return the currently allocated amount of storage for edges.
void mitsuba::MemoryPool::release |
( |
PathEdge * |
edge | ) |
|
|
inline |
void mitsuba::MemoryPool::release |
( |
PathVertex * |
vertex | ) |
|
|
inline |
std::string mitsuba::MemoryPool::toString |
( |
| ) |
const |
|
inline |
Return a human-readable description.
bool mitsuba::MemoryPool::unused |
( |
| ) |
const |
|
inline |
Check if every entry has been released.
size_t mitsuba::MemoryPool::vertexSize |
( |
| ) |
|
|
inline |
Return the currently allocated amount of storage for vertices.
The documentation for this class was generated from the following file: