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< ArchiveEntry *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< AxisCmd *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< bool, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< BtnCmd *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CachedCursor, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< CacheTexture, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< const char *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csCollisionPair, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csCommandLineOption *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csConfigIterator *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csEventOutlet *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csGradientShade, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPixmap *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPlugin *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPluginLoadRec *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csPluginOption *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRect, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRef< iImage >, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csRef< iJob >, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csReversibleTransform, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csShaderVariable *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csTicks, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csTreeNode *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csTriangle, 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< csTextureHandle >, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csWeakRef< T >, 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< Entry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< float, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< FormatSpec, 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< KnownFont *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< LightSvIdCacheEntry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< ListElement, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Material, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Mesh, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< meshListEntry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Model, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Node, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< oper, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< oper_arg, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< PlaneGlyphs *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< point, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< renderMeshListInfo *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< size_t, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< SubRect *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< T *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< T, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< TextJob, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Thread *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< timerevent, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< uint8 *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< userbuffer, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< utf32_char, CS::Memory::AllocatorMalloc >, and CS::Memory::AllocatorPointerWrapper< VariableMapEntry, 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 76 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 87 of file allocator.h.

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

Free the block p.

Definition at line 98 of file allocator.h.

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

Resize the allocated block p to size newSize.

Definition at line 106 of file allocator.h.

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

Set the information used for memory tracking.

Definition at line 118 of file allocator.h.


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

Generated for Crystal Space 1.4.1 by doxygen 1.7.1