TuttleOFX  1
tuttle::host::ofx::OfxhMemory Class Reference

#include <OfxhMemory.hpp>

Public Member Functions

 OfxhMemory ()
virtual ~OfxhMemory ()
virtual bool alloc (size_t nBytes)
virtual OfxImageMemoryHandle getHandle ()
virtual void freeMem ()
virtual void * getPtr ()
virtual void lock ()
virtual void unlock ()
virtual bool verifyMagic ()

Protected Attributes

char * _ptr
bool _locked

Detailed Description

Todo:
use MemoryPool

Definition at line 43 of file OfxhMemory.hpp.


Constructor & Destructor Documentation

tuttle::host::ofx::OfxhMemory::OfxhMemory ( )

Definition at line 41 of file OfxhMemory.cpp.

tuttle::host::ofx::OfxhMemory::~OfxhMemory ( ) [virtual]

Definition at line 46 of file OfxhMemory.cpp.

References _ptr.


Member Function Documentation

bool tuttle::host::ofx::OfxhMemory::alloc ( size_t  nBytes) [virtual]

Definition at line 51 of file OfxhMemory.cpp.

References _locked, _ptr, and freeMem().

Referenced by tuttle::host::ImageEffectNode::newMemoryInstance().

Here is the call graph for this function:

void tuttle::host::ofx::OfxhMemory::freeMem ( ) [virtual]

Definition at line 69 of file OfxhMemory.cpp.

References _ptr.

Referenced by alloc().

OfxImageMemoryHandle tuttle::host::ofx::OfxhMemory::getHandle ( ) [virtual]

Definition at line 64 of file OfxhMemory.cpp.

void * tuttle::host::ofx::OfxhMemory::getPtr ( ) [virtual]

Definition at line 75 of file OfxhMemory.cpp.

References _ptr.

void tuttle::host::ofx::OfxhMemory::lock ( ) [virtual]

Definition at line 80 of file OfxhMemory.cpp.

References _locked.

void tuttle::host::ofx::OfxhMemory::unlock ( ) [virtual]

Definition at line 85 of file OfxhMemory.cpp.

References _locked.

virtual bool tuttle::host::ofx::OfxhMemory::verifyMagic ( ) [inline, virtual]

Definition at line 56 of file OfxhMemory.hpp.


Field Documentation

Definition at line 60 of file OfxhMemory.hpp.

Referenced by alloc(), lock(), and unlock().

Definition at line 59 of file OfxhMemory.hpp.

Referenced by alloc(), freeMem(), getPtr(), and ~OfxhMemory().


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