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::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< AxisCmd *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< bool, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< BtnCmd *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< BucketsCommon, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< CachedShaderMetadata, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< CacheTexture, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< ChannelData, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< CommandSection, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< const char *, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< ContextNode *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< CS::Animation::iSkeletonAnimNodeFactory *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< CS::Threading::Condition *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csCollisionPair, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csCommandLineOption *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csConfigIterator *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csEventOutlet *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csGradientShade, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csPixmap *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csPlugin, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csPluginLoadRec *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csPluginOption *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csRect, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csRef< iImage >, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csRef< iJob >, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csReversibleTransform, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csShaderVariable **, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csShaderVariable *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csTicks, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csTreeNode *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csTriangle, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csVector2, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csVector3, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csVector4, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csVisibilityObjectWrapper *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< csWeakRef< T >, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< csWin32RegistryIterator *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< DebugLineScreen, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< DebugTexture, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< DocStackEntry, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< DOFChannel, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< ElementArray, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< ElementArray, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< Entry, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< float, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< FormatSpec, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< FrameData, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iBase *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iConfigFile *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iConfigIterator *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iConfigListener *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iEventHandler *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iImage *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< int, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iObjectModelListener *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iObjectNameChangeListener *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iShader *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iSndSysStreamCallback *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iTextureHandle *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< iVisibilityObject *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< KnownFont *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Layer *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Layer, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< LayerInputMap, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< LayerRenderInfo, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< LightInfo, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< ListElement, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< LuminanceComputeStage, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Material, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Mesh, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< meshListEntry, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Model, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Node, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< ObjectType *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< oper, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< oper_arg, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Option, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< PlaneGlyphs *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< point, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< PortalHolder, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< PostEffectManager::Layer *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< renderMeshListInfo *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< RViewPortal2RenderView *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< SingleMesh, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< size_t, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< StringIDValue, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< SubRect *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< SuperFrustum *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Target *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< TargetSettings, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< TextJob, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< TexturesBucket, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< Thread *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< timerevent, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< typename RenderTree::ContextNode *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< uint8 *, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< userbuffer, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< utf32_char, CS::Container::ArrayAllocDefault >, CS::Memory::AllocatorPointerWrapper< VariableMapEntry, CS::Memory::AllocatorMalloc >, CS::Memory::AllocatorPointerWrapper< View2RenderView *, CS::Container::ArrayAllocDefault >, and CS::Memory::LocalBufferAllocator< size_t, 2, CS::Memory::AllocatorMalloc, true >.

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 79 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 90 of file allocator.h.

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

Free the block p.

Definition at line 101 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 109 of file allocator.h.

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

Set the information used for memory tracking.

Definition at line 121 of file allocator.h.


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

Generated for Crystal Space 2.0 by doxygen 1.6.1