Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | List of all members
xalanc::XalanQNameByValueAllocator Class Reference

#include <xalanc/XPath/XalanQNameByValueAllocator.hpp>

Public Types

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

Public Member Functions

 XalanQNameByValueAllocator (MemoryManager &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 Locator *locator=0, bool fUseDefault=false)
 Create an instance. More...
 
data_typecreate (const XalanDOMChar *qname, const NamespacesStackType &namespaces, const Locator *locator=0, bool fUseDefault=false)
 Create an instance. More...
 
data_typecreate (const XalanDOMString &qname, const PrefixResolver *theResolver=0, const Locator *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...
 

Detailed Description

Definition at line 41 of file XalanQNameByValueAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 53 of file XalanQNameByValueAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanQNameByValueAllocator.hpp.

◆ NamespacesStackType

Definition at line 46 of file XalanQNameByValueAllocator.hpp.

◆ size_type

Definition at line 56 of file XalanQNameByValueAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanQNameByValueAllocator()

xalanc::XalanQNameByValueAllocator::XalanQNameByValueAllocator ( MemoryManager &  theManager,
size_type  theBlockCount 
)

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

Parameters
theBlockSizeThe block size.

◆ ~XalanQNameByValueAllocator()

xalanc::XalanQNameByValueAllocator::~XalanQNameByValueAllocator ( )

Member Function Documentation

◆ create() [1/5]

data_type* xalanc::XalanQNameByValueAllocator::create ( const XalanDOMChar *  qname,
const NamespacesStackType namespaces,
const Locator *  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.

◆ create() [2/5]

data_type* xalanc::XalanQNameByValueAllocator::create ( const XalanDOMString qname,
const NamespacesStackType namespaces,
const Locator *  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.

◆ create() [3/5]

data_type* xalanc::XalanQNameByValueAllocator::create ( const XalanDOMString qname,
const PrefixResolver theResolver = 0,
const Locator *  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.

◆ create() [4/5]

data_type* xalanc::XalanQNameByValueAllocator::create ( const XalanDOMString theNamespaceURI,
const XalanDOMString theLocalPart 
)

Create an instance.

Parameters
theNamespacenamespace string
theLocalPartlocal part string
Returns
A pointer to the new instance.

◆ create() [5/5]

data_type* xalanc::XalanQNameByValueAllocator::create ( const XalanQNameByValue theSource)

Create an instance.

Parameters
theSourceThe source of the copy.
Returns
A pointer to the new instance.

◆ getBlockCount()

size_type xalanc::XalanQNameByValueAllocator::getBlockCount ( ) const
inline

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 165 of file XalanQNameByValueAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanQNameByValueAllocator::getBlockSize ( ) const
inline

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

Returns
The size of the block

Definition at line 177 of file XalanQNameByValueAllocator.hpp.

◆ ownsObject()

bool xalanc::XalanQNameByValueAllocator::ownsObject ( const data_type theObject)
inline

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

Definition at line 145 of file XalanQNameByValueAllocator.hpp.

◆ reset()

void xalanc::XalanQNameByValueAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 154 of file XalanQNameByValueAllocator.hpp.


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