CrystalSpace

Public API Reference

CS::Memory::AllocatorMalloc Class Reference

A default memory allocator that allocates with cs_malloc(). More...

#include <csutil/allocator.h>

Inherited by CS::Memory::AllocatorPointerWrapper< const char *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::Debug::ProfileCounter *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::Debug::ProfileZone *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::SubRectangles::SubRect *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::Threading::Thread *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::Utility::ImportKit::Container::Material, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::Utility::ImportKit::Container::Model, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CS::Utility::ImportKit::Container::Model::Mesh, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csArchive::ArchiveEntry *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csCollisionPair, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csConfigIterator *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csEventOutlet *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csFontCache::KnownFont *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csGLFontCache::CacheTexture, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csGLFontCache::TextJob, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csGradientShade, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csInputBinder::AxisCmd *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csInputBinder::BtnCmd *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csLightShaderVarCache::LightSvIdCacheEntry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPathsList::Entry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPen::point, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPixmap *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPluginLoadRec *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPluginManager::csPlugin *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPluginManager::csPluginOption *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPrintfFormatter::FmtParam, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPrintfFormatter::FormatSpec, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csProfileInfo, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRect, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRef< iImage >, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRenderMeshList::meshListEntry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRenderMeshList::renderMeshListInfo *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csReversibleTransform, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csShaderProgram::VariableMapEntry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csShaderVariable *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csTreeNode *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csTriangle, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csUserRenderBufferManager::userbuffer, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csVector2, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csVector3, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csVector4, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csWeakRef< T >, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csWin32CustomCursors::CachedCursor, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csWin32RegistryIterator *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< DirectDetectionDevice, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< ElementArray, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< float, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< FrameData, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iBase *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iConfigFile *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iConfigIterator *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iEventHandler *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iImage *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iMeshObject *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< int, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iObjectModelListener *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iObjectNameChangeListener *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iParticle *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iSndSysStreamCallback *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iSprite2DState *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< iTextureHandle *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Node, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< size_t, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< T *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< T, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< timerevent, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< unsigned char *, CS::Memory::AllocatorMalloc >, and CS::Memory::AllocatorPointerWrapper< unsigned int, CS::Memory::AllocatorMalloc >.

List of all members.

Public Member Functions

void * Alloc (const size_t n)
 Allocate a block of memory of size n.
void Free (void *p)
 Free the block p.
void * Realloc (void *p, size_t newSize)
 Resize the allocated block p to size newSize.
void SetMemTrackerInfo (const char *info)
 Set the information used for memory tracking.


Detailed Description

A default memory allocator that allocates with cs_malloc().

Definition at line 39 of file allocator.h.


Member Function Documentation

void* CS::Memory::AllocatorMalloc::Alloc ( const size_t  n  )  [inline]

Allocate a block of memory of size n.

Definition at line 50 of file allocator.h.

References cs_malloc().

Referenced by Realloc().

void CS::Memory::AllocatorMalloc::Free ( void *  p  )  [inline]

Free the block p.

Definition at line 63 of file allocator.h.

References cs_free().

void* CS::Memory::AllocatorMalloc::Realloc ( void *  p,
size_t  newSize 
) [inline]

Resize the allocated block p to size newSize.

Definition at line 76 of file allocator.h.

References Alloc(), and cs_realloc().

void CS::Memory::AllocatorMalloc::SetMemTrackerInfo ( const char *  info  )  [inline]

Set the information used for memory tracking.

Definition at line 93 of file allocator.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3