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

#include <xalanc/XSLT/XalanMatchPatternDataAllocator.hpp>

Public Types

typedef XalanMatchPatternData data_type
 
typedef ArenaAllocator< data_typeArenaAllocatorType
 
typedef ArenaAllocatorType::size_type size_type
 

Public Member Functions

 XalanMatchPatternDataAllocator (MemoryManager &theManager, size_type theBlockCount)
 Construct an instance that will allocate blocks of the specified size. More...
 
 ~XalanMatchPatternDataAllocator ()
 
data_typecreate (const ElemTemplate &theTemplate, data_type::size_type thePosition, const XalanDOMString &theTargetString, const XPath &theMatchPattern, const XalanDOMString &thePatternString, data_type::eMatchScore thePriority)
 Construct 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 XalanMatchPatternDataAllocator.hpp.

Member Typedef Documentation

◆ ArenaAllocatorType

Definition at line 52 of file XalanMatchPatternDataAllocator.hpp.

◆ data_type

Definition at line 45 of file XalanMatchPatternDataAllocator.hpp.

◆ size_type

Definition at line 55 of file XalanMatchPatternDataAllocator.hpp.

Constructor & Destructor Documentation

◆ XalanMatchPatternDataAllocator()

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

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

Parameters
theBlockSizeThe block size.

◆ ~XalanMatchPatternDataAllocator()

xalanc::XalanMatchPatternDataAllocator::~XalanMatchPatternDataAllocator ( )

Member Function Documentation

◆ create()

data_type* xalanc::XalanMatchPatternDataAllocator::create ( const ElemTemplate theTemplate,
data_type::size_type  thePosition,
const XalanDOMString theTargetString,
const XPath theMatchPattern,
const XalanDOMString thePatternString,
data_type::eMatchScore  thePriority 
)

Construct an instance.

Parameters
constructionContextcontext for construction of object
stylesheetTreestylesheet containing element
attslist of attributes for element
lineNumberline number in document
columnNumbercolumn number in document
theTemplateThe ElemTemplate node that contains the template for this pattern
thePositionThe position in the stylesheet
theTargetStringThe target string for match pattern
TheMatchPatternThe match pattern
thePatternStringthe pattern string
thePriorityThe priority for the match pattern.
Returns
A pointer to the new instance.

◆ getBlockCount()

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

Get the number of ArenaBlocks currently allocated.

Returns
The number of blocks.

Definition at line 117 of file XalanMatchPatternDataAllocator.hpp.

◆ getBlockSize()

size_type xalanc::XalanMatchPatternDataAllocator::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 129 of file XalanMatchPatternDataAllocator.hpp.

◆ ownsObject()

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

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

Definition at line 97 of file XalanMatchPatternDataAllocator.hpp.

◆ reset()

void xalanc::XalanMatchPatternDataAllocator::reset ( )
inline

Delete all objects from the allocator.


Definition at line 106 of file XalanMatchPatternDataAllocator.hpp.


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