Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore::Object::MemoryAccumulator Class Reference

#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.
 

Detailed Description

The class provided to the memoryUsage() virtual method implemented by subclasses.

Member Function Documentation

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.


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