Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Classes | Public Types | Public Member Functions | Static Public Attributes

XPathFunctionTable Class Reference

Class defines a table of functions that can be called in XPath expresions. More...

#include <XPathFunctionTable.hpp>

Collaboration diagram for XPathFunctionTable:
Collaboration graph
[legend]

List of all members.

Classes

Public Types

Public Member Functions

Static Public Attributes


Detailed Description

Class defines a table of functions that can be called in XPath expresions.

Definition at line 93 of file XPathFunctionTable.hpp.


Member Typedef Documentation

Definition at line 101 of file XPathFunctionTable.hpp.

Definition at line 99 of file XPathFunctionTable.hpp.

Definition at line 100 of file XPathFunctionTable.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
InvalidFunctionNumberID 
TableSize 

Definition at line 97 of file XPathFunctionTable.hpp.


Constructor & Destructor Documentation

XPathFunctionTable::XPathFunctionTable ( bool  fCreateTable = true  ) 

Constructor.

Parameters:
fCreateTable If true, the internal table will be created. Otherwise, CreateTable() must be called.
XPathFunctionTable::~XPathFunctionTable (  ) 

Member Function Documentation

void XPathFunctionTable::CreateTable (  ) 

Set up the internal table.

void XPathFunctionTable::DestroyTable (  ) 

Destroy the internal table.

const Function& XPathFunctionTable::get ( const XalanDOMString theFunctionName,
const Locator *  theLocator 
) const [inline]

Retrieve the function object for a specified function name.

If the named Function is not found, an exception is thrown.

Parameters:
theFunctionName The name of function
theLocator The Locator instance to use when reporting an error.
Returns:
function named

Definition at line 138 of file XPathFunctionTable.hpp.

template<class OutputIteratorType >
void XPathFunctionTable::getInstalledFunctionNames ( OutputIteratorType  theIterator  )  const [inline]

Add a list of the names of installed functions to a vector of names.

Parameters:
theIterator function table iterator to append names to

Definition at line 309 of file XPathFunctionTable.hpp.

const XalanDOMString& XPathFunctionTable::idToName ( int  theFunctionID,
XalanDOMString theResult 
) const [inline]

Map a function ID to the corresponding name.

Parameters:
theFunctionID The ID number of the function
Returns:
The name of the function, or an empty string if the function doesn't exist.

Definition at line 218 of file XPathFunctionTable.hpp.

void XPathFunctionTable::InstallFunction ( const XalanDOMString theFunctionName,
const Function theFunction 
) [inline]

Insert a named function into the function table.

Parameters:
theFunctionName name of function
theFunction function object corresponding to name

Definition at line 251 of file XPathFunctionTable.hpp.

void XPathFunctionTable::InstallFunction ( const XalanDOMChar *  theFunctionName,
const Function theFunction 
)

Insert a named function into the function table.

Parameters:
theFunctionName name of function
theFunction function object corresponding to name
bool XPathFunctionTable::isInstalledFunction ( const XalanDOMString theFunctionName  )  const [inline]

Whether a named function is in the function table.

Parameters:
theFunctionName name of function
Returns:
true if function is in table

Definition at line 297 of file XPathFunctionTable.hpp.

int XPathFunctionTable::nameToID ( const XalanDOMString theName  )  const [inline]

Map a function name to the corresponding ID number.

Parameters:
theName name of function
Returns:
The ID number of function, or InvalidFunctionNumberID if the function doesn't exist.

Definition at line 239 of file XPathFunctionTable.hpp.

const Function& XPathFunctionTable::operator[] ( int  theFunctionID  )  const [inline]

Retrieve the function object for a specified function ID number.

Parameters:
theFunctionID ID number of the function
Returns:
function named

Definition at line 203 of file XPathFunctionTable.hpp.

void XPathFunctionTable::setMemoryManager ( MemoryManager &  theManager  )  [inline]

Definition at line 113 of file XPathFunctionTable.hpp.

bool XPathFunctionTable::UninstallFunction ( const XalanDOMChar *  theFunctionName  ) 

Remove a named function from the function table.

Parameters:
theFunctionName name of function
Returns:
true if the function was found and removed.
bool XPathFunctionTable::UninstallFunction ( const XalanDOMString theFunctionName  )  [inline]

Remove a named function from the function table.

Parameters:
theFunctionName name of function
Returns:
true if the function was found and removed.

Definition at line 265 of file XPathFunctionTable.hpp.


Member Data Documentation

const XalanDOMChar XPathFunctionTable::s_boolean[] [static]

Definition at line 385 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_ceiling[] [static]

Definition at line 388 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_concat[] [static]

Definition at line 376 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_contains[] [static]

Definition at line 394 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_count[] [static]

Definition at line 364 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_current[] [static]

Definition at line 391 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_document[] [static]

Definition at line 397 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_elementAvailable[] [static]

Definition at line 439 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_false[] [static]

Definition at line 367 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_floor[] [static]

Definition at line 370 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_formatNumber[] [static]

Definition at line 418 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_functionAvailable[] [static]

Definition at line 442 of file XPathFunctionTable.hpp.

Definition at line 448 of file XPathFunctionTable.hpp.

Definition at line 451 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_generateId[] [static]

Definition at line 412 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_id[] [static]

Definition at line 340 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_key[] [static]

Definition at line 343 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_lang[] [static]

Definition at line 352 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_last[] [static]

Definition at line 355 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_localName[] [static]

Definition at line 409 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_name[] [static]

Definition at line 358 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_namespaceUri[] [static]

Definition at line 421 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_normalizeSpace[] [static]

Definition at line 427 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_not[] [static]

Definition at line 346 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_number[] [static]

Definition at line 379 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_position[] [static]

Definition at line 400 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_round[] [static]

Definition at line 373 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_startsWith[] [static]

Definition at line 415 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_string[] [static]

Definition at line 382 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_stringLength[] [static]

Definition at line 424 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_substring[] [static]

Definition at line 403 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_substringAfter[] [static]

Definition at line 430 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_substringBefore[] [static]

Definition at line 436 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_sum[] [static]

Definition at line 349 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_systemProperty[] [static]

Definition at line 433 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_translate[] [static]

Definition at line 406 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_true[] [static]

Definition at line 361 of file XPathFunctionTable.hpp.

const XalanDOMChar XPathFunctionTable::s_unparsedEntityUri[] [static]

Definition at line 445 of file XPathFunctionTable.hpp.


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