CrystalSpace

Public API Reference

CS::Memory::CustomAllocated Class Reference

Class that overrides operator new/operator delete/etc. More...

#include <csutil/customallocated.h>

Inherited by CS::RenderManager::HDR::Exposure::Configurable::AbstractExposure, CS::RenderManager::PostEffectLayersParser, CS::RenderManager::ShadowPSSM< RenderTreeType, LayerConfigType >::CachedLightData, CS::RenderManager::ShadowSettings::Target, CS::SubRectangles, csArray< T, ElementHandler, MemoryAllocator, CapacityHandler >, csArray< ArchiveEntry * >, csArray< ArchiveEntry *, csPDelArrayElementHandler< ArchiveEntry * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 256 > >, csArray< AxisCmd * >, csArray< BaseModifiableDescription *, csRefArrayElementHandler< BaseModifiableDescription * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< bool, csArrayElementHandler< bool >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< BtnCmd * >, csArray< CachedShaderMetadata >, csArray< CacheTexture >, csArray< ChannelData >, csArray< CommandSection >, csArray< const char *, csStringArrayElementHandler, Allocator, CapacityHandler >, csArray< const char *, csStringArrayElementHandler, CS::Memory::AllocatorMalloc, csArrayCapacityDefault >, csArray< ContextNode * >, csArray< CS::Animation::iSkeletonAnimNodeFactory *, csRefArrayElementHandler< CS::Animation::iSkeletonAnimNodeFactory * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< CS::Threading::Condition * >, csArray< csCollisionPair >, csArray< csCommandLineOption *, csPDelArrayElementHandler< csCommandLineOption * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< csConfigIterator * >, csArray< csEventOutlet * >, csArray< csGradientShade >, csArray< csPixmap *, csPDelArrayElementHandler< csPixmap * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< csPlugin, csArraySafeCopyElementHandler< csPlugin >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 8 > >, csArray< csPluginLoadRec *, csPDelArrayElementHandler< csPluginLoadRec * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< csPluginOption *, csPDelArrayElementHandler< csPluginOption * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< csRect >, csArray< csRef< iImage > >, csArray< csRef< iJob >, csArrayElementHandler< csRef< iJob > >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< csReversibleTransform >, csArray< csShaderVariable ** >, csArray< csShaderVariable *, csRefArrayElementHandler< csShaderVariable * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< csTicks >, csArray< csTreeNode * >, csArray< csTriangle, csArrayElementHandler< csTriangle >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< csVariant >, csArray< csVector2, csArrayElementHandler< csVector2 >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< csVector3 >, csArray< csVector3, csArrayElementHandler< csVector3 >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< csVector4, csArrayElementHandler< csVector4 >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< csVisibilityObjectWrapper *, csRefArrayElementHandler< csVisibilityObjectWrapper * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< csWeakRef< T >, csArraySafeCopyElementHandler< csWeakRef< T > >, Allocator, CapacityHandler >, csArray< csWeakRef< T >, csArraySafeCopyElementHandler< csWeakRef< T > >, CS::Memory::AllocatorMalloc, CS::Container::ArrayCapacityDefault >, csArray< csWin32RegistryIterator * >, csArray< DebugLineScreen >, csArray< DebugTexture >, csArray< DocStackEntry, csArrayElementHandler< DocStackEntry >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< DOFChannel >, csArray< ElementArray, csArrayElementHandler< ElementArray >, Allocator >, csArray< ElementArray, csArrayElementHandler< ElementArray >, ArrayMemoryAlloc >, csArray< ElementArray, csArrayElementHandler< ElementArray >, CS::Container::ArrayAllocDefault >, csArray< ElementArray, csArrayElementHandler< ElementArray >, CS::Memory::AllocatorMalloc >, csArray< Entry >, csArray< Entry, csArrayElementHandler< Entry >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 4 > >, csArray< float >, csArray< float, csArrayElementHandler< float >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 256 > >, csArray< FmtParam, csArrayElementHandler< FmtParam >, CS::Memory::AllocatorAlign< sizeof(FmtParam)> >, csArray< FormatSpec >, csArray< FrameData >, csArray< Frustum >, csArray< iBase * >, csArray< iConfigFile * >, csArray< iConfigFile *, csRefArrayElementHandler< iConfigFile * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iConfigIterator * >, csArray< iConfigListener *, csRefArrayElementHandler< iConfigListener * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iImage *, csRefArrayElementHandler< iImage * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iModifiableParameter *, csRefArrayElementHandler< iModifiableParameter * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iMovableListener *, csRefArrayElementHandler< iMovableListener * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< int >, csArray< iObjectModelListener *, csRefArrayElementHandler< iObjectModelListener * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iObjectNameChangeListener *, csRefArrayElementHandler< iObjectNameChangeListener * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iPostEffect *, csRefArrayElementHandler< iPostEffect * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iPostEffectLayer * >, csArray< iSceneNode *, csRefArrayElementHandler< iSceneNode * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iSector *, csRefArrayElementHandler< iSector * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iShader *, csArrayElementHandler< iShader * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iSndSysStreamCallback *, csRefArrayElementHandler< iSndSysStreamCallback * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< iTextureHandle * >, csArray< iVisibilityObject *, csArrayElementHandler< iVisibilityObject * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 256 > >, csArray< KnownFont * >, csArray< Layer >, csArray< LightInfo >, csArray< LuminanceComputeStage >, csArray< Material >, csArray< Mesh >, csArray< meshListEntry >, csArray< Model >, csArray< Node >, csArray< NodeMeshList *, csRefArrayElementHandler< NodeMeshList * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< ObjectType *, csArrayElementHandler< ObjectType * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< oper >, csArray< oper_arg >, csArray< Option >, csArray< PlaneGlyphs *, PlaneGlyphElementHandler >, csArray< point >, csArray< PortalHolder >, csArray< PostEffectLayerInputMap, csArrayElementHandler< PostEffectLayerInputMap >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< PostEffectLayerOptions, csArrayElementHandler< PostEffectLayerOptions >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< PRMesh >, csArray< psvc >, csArray< QueryData * >, csArray< renderMeshListInfo *, csPDelArrayElementHandler< renderMeshListInfo * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< RViewPortal2RenderView *, csRefArrayElementHandler< RViewPortal2RenderView * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< SingleMesh >, csArray< size_t >, csArray< size_t, csArrayElementHandler< size_t >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< size_t, csArrayElementHandler< size_t >, CS::Memory::LocalBufferAllocator< size_t, 2, CS::Memory::AllocatorMalloc, true > >, csArray< size_t, csArrayElementHandler< size_t >, CS::Memory::LocalBufferAllocator< size_t, 2, CS::Memory::AllocatorMalloc, true >, CS::Container::ArrayCapacityDefault >, csArray< Slice >, csArray< StringIDValue, csArrayElementHandler< StringIDValue >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< SubRect * >, csArray< T *, csPDelArrayElementHandler< T * >, MemoryAllocator, CapacityHandler >, csArray< T *, csRefArrayElementHandler< T * >, Allocator, CapacityHandler >, csArray< T, csArraySafeCopyElementHandler< T >, Allocator, CapacityHandler >, csArray< Target *, csPDelArrayElementHandler< Target * >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< TargetSettings, csArrayElementHandler< TargetSettings >, CS::Container::ArrayAllocDefault, csArrayCapacityFixedGrow< 16 > >, csArray< TextJob >, csArray< Thread *, csRefArrayElementHandler< Thread * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< timerevent >, csArray< typename RenderTree::ContextNode * >, csArray< uint, csArrayElementHandler< uint >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< uint8 * >, csArray< unsigned, csArrayElementHandler< unsigned >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< userbuffer >, csArray< utf32_char, csArrayElementHandler< utf32_char >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csArray< VariableMapEntry, csArraySafeCopyElementHandler< VariableMapEntry >, CS::Memory::AllocatorMalloc, CS::Container::ArrayCapacityDefault >, csArray< View2RenderView *, csRefArrayElementHandler< View2RenderView * >, CS::Container::ArrayAllocDefault, CS::Container::ArrayCapacityDefault >, csBSPTree, csPtr< T >, csRef< T >, csRef< BoxClipperCacheRefCounted >, csRef< CS::Animation::iSkeletonAnimation >, csRef< CS::Animation::iSkeletonAnimNode >, csRef< CS::Animation::iSkeletonAnimNodeFactory >, csRef< CS::Collisions::iCollisionSystem >, csRef< CS::Collisions::iConvexDecomposer >, csRef< CS::Debug::iVisualDebugger >, csRef< CS::Threading::ThreadedJobQueue >, csRef< CS::Utility::iCameraManager >, csRef< CS::Utility::iHUDManager >, csRef< csMemoryMappedIO >, csRef< csRenderBufferHolder >, csRef< csShaderVariable >, csRef< csView >, csRef< EventHandlerImpl >, csRef< FactoryType >, csRef< FramePrinter >, csRef< iAllocator >, csRef< iAnimatedImage >, csRef< iBase >, csRef< iCamera >, csRef< iClipper2D >, csRef< iCollider >, csRef< iCollideSystem >, csRef< iCommandLineParser >, csRef< iCustomMatrixCamera >, csRef< iCustomProcessor >, csRef< iDataBuffer >, csRef< iDocument >, csRef< iDocumentNode >, csRef< iDocumentNodeIterator >, csRef< iDocumentSystem >, csRef< iEngine >, csRef< iEventHandler >, csRef< iEventHandlerRegistry >, csRef< iEventNameRegistry >, csRef< iEventOutlet >, csRef< iEventQueue >, csRef< iFile >, csRef< iGraphics2D >, csRef< iGraphics3D >, csRef< iHierarchicalCache >, csRef< iImage >, csRef< iImageFileLoader >, csRef< iJob >, csRef< iJobQueue >, csRef< iJoystickDriver >, csRef< iKeyboardDriver >, csRef< iLoader >, csRef< iMapNode >, csRef< iMeshObjectDrawCallback >, csRef< iModifiableConstraint >, csRef< iMouseDriver >, csRef< iNativeWindow >, csRef< iObjectDescriptor >, csRef< iObjectIterator >, csRef< iPluginConfig >, csRef< iPostEffect >, csRef< iPostEffectManager >, csRef< iRenderBuffer >, csRef< iRenderBufferAccessor >, csRef< iSector >, csRef< iSequenceOperation >, csRef< iShader >, csRef< iShaderManager >, csRef< iShaderPassesActivator >, csRef< iShaderVariableAccessor >, csRef< iShaderVariableContext >, csRef< iShaderVarStringSet >, csRef< iStringArray >, csRef< iStringSet >, csRef< iSyntaxService >, csRef< iTextureFactory >, csRef< iTextureHandle >, csRef< iTextureWrapper >, csRef< iThreadManager >, csRef< iTimerEvent >, csRef< iUserData >, csRef< iVFS >, csRef< iView >, csRef< iVirtualClock >, csRef< LightCallback >, csRef< ListAccessQueue >, csRef< LoaderJob >, csRef< QueueRunnable >, csRef< RenderView >, csRef< scfString >, csRef< Thread >, csRef< ThreadState >, csRef< VfsHierarchicalCache >, csRef< WrappedData >, csRegExpMatcher, csTriangleMeshEdge, scfImplementation< Class >, scfImplementation< AllocatorImplementation< Allocator > >, scfImplementation< AnimNodeManagerCommon< ThisType, ManagerInterface, FactoryType > >, scfImplementation< BaseModifiableDescription >, scfImplementation< BaseModifiableParameter >, scfImplementation< BaseMovable >, scfImplementation< ConfigEventNotifier >, scfImplementation< ConfigListenerBase >, scfImplementation< csBaseTextureFactory >, scfImplementation< csClipper >, scfImplementation< csCommandLineParser >, scfImplementation< csCommonImageFileLoader >, scfImplementation< csConfigDocument >, scfImplementation< csConfigFile >, scfImplementation< csConfigManager >, scfImplementation< csDocumentAttributeCommon >, scfImplementation< csDocumentNodeCommon >, scfImplementation< csEmptyDocumentAttributeIterator >, scfImplementation< csEmptyDocumentNodeIterator >, scfImplementation< csEvent >, scfImplementation< csEventAttributeIterator >, scfImplementation< csEventCord >, scfImplementation< csEventHandlerRegistry >, scfImplementation< csEventNameRegistry >, scfImplementation< csEventOutlet >, scfImplementation< csEventQueue >, scfImplementation< csEventTimer >, scfImplementation< csGradient >, scfImplementation< csGraphics2D >, scfImplementation< csImageBase >, scfImplementation< csInputBinder >, scfImplementation< csJoystickDriver >, scfImplementation< csKeyboardDriver >, scfImplementation< csKeyComposer >, scfImplementation< csLoaderReturn >, scfImplementation< csMemFile >, scfImplementation< csMeshFactory >, scfImplementation< csMeshType >, scfImplementation< csMouseDriver >, scfImplementation< csNormalizationCubeAccessor >, scfImplementation< csNullCacheManager >, scfImplementation< csObject >, scfImplementation< csObjectModel >, scfImplementation< csObjectRegistry >, scfImplementation< csOccluvisObjIt >, scfImplementation< csParasiticDataBufferBase >, scfImplementation< csPhysicalFile >, scfImplementation< csPluginManager >, scfImplementation< csRenderBuffer >, scfImplementation< csScriptCommon >, scfImplementation< csScriptObjectCommon >, scfImplementation< csShaderProgram >, scfImplementation< csShaderVariableContext >, scfImplementation< csTextProgressMeter >, scfImplementation< csThreadManager >, scfImplementation< csThreadReturn >, scfImplementation< csTiledCoverageBuffer >, scfImplementation< csTinyDocumentSystem >, scfImplementation< csTriangleMesh >, scfImplementation< csTriangleMeshBox >, scfImplementation< csTriangleMeshPointer >, scfImplementation< csVerbosityManager >, scfImplementation< csVfsCacheManager >, scfImplementation< csView >, scfImplementation< csVirtualClock >, scfImplementation< csVisibilityObjectWrapper >, scfImplementation< csWin32RegistryConfig >, scfImplementation< DataBuffer< Allocator > >, scfImplementation< DDOFHelper >, scfImplementation< EventHandlerImpl >, scfImplementation< FilterDocumentNodeIterator< T > >, scfImplementation< FontDeleteNotify >, scfImplementation< FrameBegin3DDraw >, scfImplementation< FramePrinter >, scfImplementation< FrameSignpost_2DConsole >, scfImplementation< FrameSignpost_3D2D >, scfImplementation< FrameSignpost_ConsoleDebug >, scfImplementation< FrameSignpost_DebugFrame >, scfImplementation< FrameSignpost_Logic3D >, scfImplementation< LightCallback >, scfImplementation< LoaderJob >, scfImplementation< MicroArchiveCache >, scfImplementation< ModifiableConstraintBitMask >, scfImplementation< ModifiableConstraintBounded >, scfImplementation< ModifiableConstraintEnum >, scfImplementation< ModifiableConstraintTextEntry >, scfImplementation< ModifiableConstraintVFSDir >, scfImplementation< ModifiableConstraintVFSFile >, scfImplementation< ModifiableConstraintVFSPath >, scfImplementation< MovableSectorList >, scfImplementation< RenderBufferPersistent >, scfImplementation< RenderView >, scfImplementation< RootedHierarchicalCache >, scfImplementation< scfArray< IF, Backend > >, scfImplementation< scfArrayWrap< IF, Backend > >, scfImplementation< scfArrayWrapConst< IF, Backend > >, scfImplementation< scfArrayWrapConst< iGradientShades, csArray< csGradientShade > > >, scfImplementation< scfString >, scfImplementation< scfStringArray >, scfImplementation< ScfStringSet< IF > >, scfImplementation< ShaderProgramPluginGL >, scfImplementation< SimpleJobQueue >, scfImplementation< SndSysBasicData >, scfImplementation< SndSysBasicStream >, scfImplementation< SpatialTree< BIH< ChildType >, ChildType > >, scfImplementation< SpatialTree< BVH< ChildType >, ChildType > >, scfImplementation< SpatialTree< KDTree< ChildType >, ChildType > >, scfImplementation< SpatialTree< Self, ChildType > >, scfImplementation< SystemOpenManager >, scfImplementation< ThreadedJobQueue >, scfImplementation< ThreadEvent10< T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10 > >, scfImplementation< ThreadEvent11< T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11 > >, scfImplementation< ThreadEvent12< T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12 > >, scfImplementation< ThreadEvent13< T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13 > >, scfImplementation< ThreadEvent14< T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14 > >, scfImplementation< ThreadEvent15< T, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15 > >, scfImplementation< ThreadEvent1< T, A1 > >, scfImplementation< ThreadEvent2< T, A1, A2 > >, scfImplementation< ThreadEvent3< T, A1, A2, A3 > >, scfImplementation< ThreadEvent4< T, A1, A2, A3, A4 > >, scfImplementation< ThreadEvent5< T, A1, A2, A3, A4, A5 > >, scfImplementation< ThreadEvent6< T, A1, A2, A3, A4, A5, A6 > >, scfImplementation< ThreadEvent7< T, A1, A2, A3, A4, A5, A6, A7 > >, scfImplementation< ThreadEvent8< T, A1, A2, A3, A4, A5, A6, A7, A8 > >, scfImplementation< ThreadEvent9< T, A1, A2, A3, A4, A5, A6, A7, A8, A9 > >, scfImplementation< TMEventHandler >, scfImplementation< VfsHierarchicalCache >, scfImplementation< ViscullCallback< RenderTree > >, and scfImplementationHelper::ScfImplAuxData.

List of all members.


Detailed Description

Class that overrides operator new/operator delete/etc.

with implementations using cs_malloc()/cs_free().

Remarks:
To outfit a class that also derives from another class with custom allocation don't use multiple inheritance, use CustomAllocatedDerived<> instead.

The reason is that the CustomAllocated instance contained in the derived class may take up some memory (in order to have a distinct address in memory), memory which is otherwise unused and wasted. CustomAllocatedDerived<> works around that as it is a base class and can thus be empty; derivation is supported through templating. (For details see http://www.cantrip.org/emptyopt.html .)

Definition at line 46 of file customallocated.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1