cheshirekow  v0.1.0
freetype::Memory Class Reference

A handle to a given memory manager object, defined with an FT_MemoryRec structure. More...

#include <cpp_freetype/Memory.h>

Public Member Functions

void destroy ()
 destroys the underlying FT_Memory object, make sure it is only called on one copy of the handle More...
 
void * get_ptr ()
 return underyling FT_Memory handle More...
 
 Memory (void *ptr)
 Wrap constructor,. More...
 

Static Public Member Functions

static Memory create (AllocFunc_t alloc, FreeFunc_t free, ReallocFunc_t realloc)
 create a new memory management handle which wraps the provided memory management slots More...
 

Private Attributes

void * m_ptr
 

Detailed Description

A handle to a given memory manager object, defined with an FT_MemoryRec structure.

Note
Memory managers are not reference counted, and ownership is not assumed by freetype. Destroy the underlying object with Memory::destroy when you are finished with it

Definition at line 43 of file Memory.h.

Constructor & Destructor Documentation

freetype::Memory::Memory ( void *  ptr)

Wrap constructor,.

Member Function Documentation

static Memory freetype::Memory::create ( AllocFunc_t  alloc,
FreeFunc_t  free,
ReallocFunc_t  realloc 
)
static

create a new memory management handle which wraps the provided memory management slots

void freetype::Memory::destroy ( )

destroys the underlying FT_Memory object, make sure it is only called on one copy of the handle

void* freetype::Memory::get_ptr ( )

return underyling FT_Memory handle

Member Data Documentation

void* freetype::Memory::m_ptr
private

Definition at line 46 of file Memory.h.


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