Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ReusableArenaAllocator< ObjectType > Class Template Reference
Inheritance diagram for ReusableArenaAllocator< ObjectType >:
ArenaAllocator< ObjectType, ReusableArenaBlock< ObjectType > >

Public Types

typedef ReusableArenaBlock
< ObjectType > 
ReusableArenaBlockType
typedef
ReusableArenaBlockType::size_type 
size_type
typedef ArenaAllocator
< ObjectType,
ReusableArenaBlockType
BaseClassType
typedef ReusableArenaAllocator
< ObjectType > 
ThisType
typedef XalanList
< ReusableArenaBlockType * > 
ArenaBlockListType
typedef
ArenaBlockListType::iterator 
iterator
typedef
ArenaBlockListType::const_iterator 
const_iterator
typedef
ArenaBlockListType::reverse_iterator 
reverse_iterator
typedef
ArenaBlockListType::const_reverse_iterator 
const_reverse_iterator
- Public Types inherited from ArenaAllocator< ObjectType, ReusableArenaBlock< ObjectType > >
typedef ArenaAllocator
< ObjectType,
ReusableArenaBlock< ObjectType > > 
ThisType
typedef XalanList
< ReusableArenaBlock
< ObjectType > * > 
ArenaBlockListType
typedef ReusableArenaBlock
< ObjectType >::size_type 
size_type

Public Member Functions

 ReusableArenaAllocator (MemoryManagerType &theManager, size_type theBlockSize, bool destroyBlocks=false)
virtual ~ReusableArenaAllocator ()
bool destroyObject (ObjectType *theObject)
virtual ObjectType * allocateBlock ()
virtual void commitAllocation (ObjectType *theObject)
virtual bool ownsObject (const ObjectType *theObject) const
- Public Member Functions inherited from ArenaAllocator< ObjectType, ReusableArenaBlock< ObjectType > >
 ArenaAllocator (MemoryManagerType &theManager, size_type theBlockSize)
virtual ~ArenaAllocator ()
MemoryManagerTypegetMemoryManager ()
const MemoryManagerTypegetMemoryManager () const
size_type getBlockSize () const
void setBlockSize (size_type theSize)
size_type getBlockCount () const
virtual void reset ()

Protected Member Functions

void destroyBlock ()

Protected Attributes

const bool m_destroyBlocks
- Protected Attributes inherited from ArenaAllocator< ObjectType, ReusableArenaBlock< ObjectType > >
size_type m_blockSize
ArenaBlockListType m_blocks

Member Typedef Documentation

template<class ObjectType>
typedef XalanList<ReusableArenaBlockType*> ReusableArenaAllocator< ObjectType >::ArenaBlockListType
template<class ObjectType>
typedef ArenaAllocator<ObjectType, ReusableArenaBlockType> ReusableArenaAllocator< ObjectType >::BaseClassType
template<class ObjectType>
typedef ArenaBlockListType::const_iterator ReusableArenaAllocator< ObjectType >::const_iterator
template<class ObjectType>
typedef ArenaBlockListType::iterator ReusableArenaAllocator< ObjectType >::iterator
template<class ObjectType>
typedef ReusableArenaBlock<ObjectType> ReusableArenaAllocator< ObjectType >::ReusableArenaBlockType
template<class ObjectType>
typedef ArenaBlockListType::reverse_iterator ReusableArenaAllocator< ObjectType >::reverse_iterator
template<class ObjectType>
typedef ReusableArenaBlockType::size_type ReusableArenaAllocator< ObjectType >::size_type
template<class ObjectType>
typedef ReusableArenaAllocator<ObjectType> ReusableArenaAllocator< ObjectType >::ThisType

Constructor & Destructor Documentation

template<class ObjectType>
ReusableArenaAllocator< ObjectType >::ReusableArenaAllocator ( MemoryManagerType theManager,
size_type  theBlockSize,
bool  destroyBlocks = false 
)
template<class ObjectType>
virtual ReusableArenaAllocator< ObjectType >::~ReusableArenaAllocator ( )
virtual

Member Function Documentation

template<class ObjectType>
virtual ObjectType* ReusableArenaAllocator< ObjectType >::allocateBlock ( )
virtual
template<class ObjectType>
virtual void ReusableArenaAllocator< ObjectType >::commitAllocation ( ObjectType *  theObject)
virtual
template<class ObjectType>
void ReusableArenaAllocator< ObjectType >::destroyBlock ( )
protected
template<class ObjectType>
bool ReusableArenaAllocator< ObjectType >::destroyObject ( ObjectType *  theObject)
template<class ObjectType>
virtual bool ReusableArenaAllocator< ObjectType >::ownsObject ( const ObjectType *  theObject) const
virtual

Member Data Documentation

template<class ObjectType>
const bool ReusableArenaAllocator< ObjectType >::m_destroyBlocks
protected

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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo