Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Types | Public Member Functions | List of all members
XalanQNameByValueAllocator Class Reference

Public Types

typedef XalanQNameByValue data_type
 
typedef
data_type::NamespacesStackType 
NamespacesStackType
 
typedef data_type::LocatorType LocatorType
 
typedef ArenaAllocator< data_typeArenaAllocatorType
 
typedef
ArenaAllocatorType::size_type 
size_type
 

Public Member Functions

 XalanQNameByValueAllocator (MemoryManagerType &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanQNameByValueAllocator ()
 
data_typecreate (const XalanQNameByValue &theSource)
 Create an instance. More...
 
data_typecreate (const XalanDOMString &theNamespaceURI, const XalanDOMString &theLocalPart)
 Create an instance. More...
 
data_typecreate (const XalanDOMString &qname, const NamespacesStackType &namespaces, const LocatorType *locator=0, bool fUseDefault=false)
 Create an instance. More...
 
data_typecreate (const XalanDOMChar *qname, const NamespacesStackType &namespaces, const LocatorType *locator=0, bool fUseDefault=false)
 Create an instance. More...
 
data_typecreate (const XalanDOMString &qname, const XalanElement *namespaceContext, const XPathEnvSupport &envSupport, const DOMSupport &domSupport, const LocatorType *locator=0)
 Create an instance. More...
 
data_typecreate (const XalanDOMString &qname, const PrefixResolver *theResolver=0, const LocatorType *locator=0)
 Create an instance. More...
 
bool ownsObject (const data_type *theObject)
 Determine if an object is owned by the allocator... More...
 
void reset ()
 Delete all objects from the allocator. More...
 
size_type getBlockCount () const
 Get the number of ArenaBlocks currently allocated. More...
 
size_type getBlockSize () const
 Get size of an ArenaBlock, that is, the number of objects in each block. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

XalanQNameByValueAllocator::XalanQNameByValueAllocator ( MemoryManagerType theManager,
size_type  theBlockCount 
)

Construct an instance that will allocate blocks of the specified size.

Parameters
theBlockSizeThe block size.
XalanQNameByValueAllocator::~XalanQNameByValueAllocator ( )

Member Function Documentation

data_type* XalanQNameByValueAllocator::create ( const XalanQNameByValue theSource)

Create an instance.

Parameters
theSourceThe source of the copy.
Returns
A pointer to the new instance.
data_type* XalanQNameByValueAllocator::create ( const XalanDOMString theNamespaceURI,
const XalanDOMString theLocalPart 
)

Create an instance.

Parameters
theNamespacenamespace string
theLocalPartlocal part string
Returns
A pointer to the new instance.
data_type* XalanQNameByValueAllocator::create ( const XalanDOMString qname,
const NamespacesStackType namespaces,
const LocatorType locator = 0,
bool  fUseDefault = false 
)

Create an instance.

Parameters
qnameQName string
namespacesnamespace vector stack to use
locatorThe Locator instance for error reporting, if any
fUseDefaultIf true, then elements with no prefix will have the default namespace URI, if there is one.
Returns
A pointer to the new instance.
data_type* XalanQNameByValueAllocator::create ( const XalanDOMChar *  qname,
const NamespacesStackType namespaces,
const LocatorType locator = 0,
bool  fUseDefault = false 
)

Create an instance.

Parameters
qnameQName string
namespacesnamespace vector stack to use
locatorThe Locator instance for error reporting, if any
fUseDefaultIf true, then elements with no prefix will have the default namespace URI, if there is one.
Returns
A pointer to the new instance.
data_type* XalanQNameByValueAllocator::create ( const XalanDOMString qname,
const XalanElement namespaceContext,
const XPathEnvSupport envSupport,
const DOMSupport domSupport,
const LocatorType locator = 0 
)

Create an instance.

Parameters
qnameQName string
namespaceContextcontext object for namespace resolution
envSupportXPathEnvSupport class instance
domSupportDOMSupport class instance
locatorThe Locator instance for error reporting, if any
Returns
A pointer to the new instance.
data_type* XalanQNameByValueAllocator::create ( const XalanDOMString qname,
const PrefixResolver theResolver = 0,
const LocatorType locator = 0 
)

Create an instance.

Parameters
qnameQName string
theResolverprefix resolver to use
locatorThe Locator instance for error reporting, if any
Returns
A pointer to the new instance.
size_type XalanQNameByValueAllocator::getBlockCount ( ) const

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.
size_type XalanQNameByValueAllocator::getBlockSize ( ) const

Get size of an ArenaBlock, that is, the number of objects in each block.

Returns
The size of the block
bool XalanQNameByValueAllocator::ownsObject ( const data_type theObject)

Determine if an object is owned by the allocator...

void XalanQNameByValueAllocator::reset ( )

Delete all objects from the allocator.


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