Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions

XalanSourceTreeDocumentAllocator Class Reference

#include <XalanSourceTreeDocumentAllocator.hpp>

Collaboration diagram for XalanSourceTreeDocumentAllocator:
Collaboration graph
[legend]

List of all members.

Public Types

Public Member Functions


Detailed Description

Definition at line 41 of file XalanSourceTreeDocumentAllocator.hpp.


Member Typedef Documentation

Definition at line 47 of file XalanSourceTreeDocumentAllocator.hpp.

Definition at line 65 of file XalanSourceTreeDocumentAllocator.hpp.

Definition at line 66 of file XalanSourceTreeDocumentAllocator.hpp.

Definition at line 67 of file XalanSourceTreeDocumentAllocator.hpp.

Definition at line 45 of file XalanSourceTreeDocumentAllocator.hpp.

Definition at line 48 of file XalanSourceTreeDocumentAllocator.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
eDefaultAttributeAllocatorBlockSize 
eDefaultAttributeNSAllocatorBlockSize 
eDefaultCommentAllocatorBlockSize 
eDefaultElementAllocatorBlockSize 
eDefaultElementNSAllocatorBlockSize 
eDefaultPIAllocatorBlockSize 
eDefaultTextAllocatorBlockSize 
eDefaultTextIWSAllocatorBlockSize 
eDefaultNamesStringPoolBlockSize 
eDefaultNamesStringPoolBucketCount 
eDefaultNamesStringPoolBucketSize 
eDefaultValuesStringPoolBlockSize 
eDefaultValuesStringPoolBucketCount 
eDefaultValuesStringPoolBucketSize 

Definition at line 50 of file XalanSourceTreeDocumentAllocator.hpp.


Constructor & Destructor Documentation

XalanSourceTreeDocumentAllocator::XalanSourceTreeDocumentAllocator ( MemoryManager &  theManager,
size_type  theBlockCount 
)

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

Parameters:
theBlockSize The block size.
XalanSourceTreeDocumentAllocator::~XalanSourceTreeDocumentAllocator (  ) 

Member Function Documentation

data_type* XalanSourceTreeDocumentAllocator::create ( bool  fPoolAllText = true,
block_size_type  theNamesStringPoolBlockSize = eDefaultNamesStringPoolBlockSize,
bucket_count_type  theNamesStringPoolBucketCount = eDefaultNamesStringPoolBucketCount,
bucket_size_type  theNamesStringPoolBucketSize = eDefaultNamesStringPoolBucketSize,
block_size_type  theValuesStringPoolBlockSize = eDefaultValuesStringPoolBlockSize,
bucket_count_type  theValuesStringPoolBucketCount = eDefaultValuesStringPoolBucketCount,
bucket_size_type  theValuesStringPoolBucketSize = eDefaultValuesStringPoolBucketSize 
)

Create a XalanSourceTreeDocument object.

Parameters:
fPoolAllText If false, text node data that is not whitespace will not be pooled.
theNamesStringPoolBlockSize The block size for allocating strings in the name pool
theNamesStringPoolBucketCount The number of buckets for allocating strings in the name pool
theNamesStringPoolBucketSize The bucket size for allocating strings in the name pool
theValuesStringPoolBlockSize The block size for allocating strings in the values pool
theValuesStringPoolBucketCount The number of buckets for allocating strings in the values pool
theValuesStringPoolBucketSize The bucket size for allocating strings in the values pool
Returns:
pointer to a node
data_type* XalanSourceTreeDocumentAllocator::create ( size_type  theAttributeBlockSize,
size_type  theAttributeNSBlockSize,
size_type  theCommentBlockSize,
size_type  theElementBlockSize,
size_type  theElementNSBlockSize,
size_type  thePIBlockSize,
size_type  theTextBlockSize,
size_type  theTextIWSBlockSize,
bool  fPoolAllText = true 
)

Create a XalanSourceTreeDocument object.

Parameters:
fPoolAllText If false, text node data that is not whitespace will not be pooled.
theAttributeBlockSize The block size for allocating attribute nodes
theAttributeNSBlockSize The block size for allocating attribute NS nodes
theCommentBlockSize The block size for allocating comment nodes
theElementBlockSize The block size for allocating element nodes
theElementNSBlockSize The block size for allocating element nodes
theTextBlockSize The block size for allocating text nodes,
theTextIWSBlockSize The block size for allocating text IWS nodes,
Returns:
pointer to a node
bool XalanSourceTreeDocumentAllocator::destroy ( data_type theObject  ) 

Delete a XalanSourceTreeDocument object from allocator.

size_type XalanSourceTreeDocumentAllocator::getBlockCount (  )  const [inline]

Get the number of ArenaBlocks currently allocated.

Returns:
The number of blocks.

Definition at line 154 of file XalanSourceTreeDocumentAllocator.hpp.

size_type XalanSourceTreeDocumentAllocator::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 166 of file XalanSourceTreeDocumentAllocator.hpp.

bool XalanSourceTreeDocumentAllocator::ownsObject ( const data_type theObject  )  [inline]

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

Definition at line 137 of file XalanSourceTreeDocumentAllocator.hpp.

void XalanSourceTreeDocumentAllocator::reset (  ) 

Delete all XalanSourceTreeDocument objects from 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.

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

Apache Logo