Cortex
10.0.0-a4
|
#include <Object.h>
Public Member Functions | |
void | accumulate (size_t bytes) |
Adds the specified number of bytes to the total. | |
void | accumulate (const Object *object) |
void | accumulate (const void *ptr, size_t bytes) |
size_t | total () const |
Returns the total accumulated to date. | |
The class provided to the memoryUsage() virtual method implemented by subclasses.
void IECore::Object::MemoryAccumulator::accumulate | ( | const Object * | object | ) |
Adds object->memoryUsage() to the total, but only if that object hasn't been accumulated already.
void IECore::Object::MemoryAccumulator::accumulate | ( | const void * | ptr, |
size_t | bytes | ||
) |
Adds bytes to the total, but only if the specified pointer hasn't been passed to this call already.