Class defines a table of functions that can be called in XPath expresions.
More...
#include <xalanc/XPath/XPathFunctionTable.hpp>
Class defines a table of functions that can be called in XPath expresions.
Definition at line 93 of file XPathFunctionTable.hpp.
◆ DeleteFunctorType
◆ SizeType
◆ StringSizeType
◆ anonymous enum
◆ XPathFunctionTable()
| xalanc::XPathFunctionTable::XPathFunctionTable |
( |
bool |
fCreateTable = true | ) |
|
Constructor.
- Parameters
-
| fCreateTable | If true, the internal table will be created. Otherwise, CreateTable() must be called. |
◆ ~XPathFunctionTable()
| xalanc::XPathFunctionTable::~XPathFunctionTable |
( |
| ) |
|
◆ CreateTable()
| void xalanc::XPathFunctionTable::CreateTable |
( |
| ) |
|
Set up the internal table.
◆ DestroyTable()
| void xalanc::XPathFunctionTable::DestroyTable |
( |
| ) |
|
Destroy the internal table.
◆ get()
| const Function& xalanc::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.
◆ getInstalledFunctionNames()
template<class OutputIteratorType >
| void xalanc::XPathFunctionTable::getInstalledFunctionNames |
( |
OutputIteratorType |
theIterator | ) |
const |
|
inline |
◆ idToName()
◆ InstallFunction() [1/2]
| void xalanc::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 |
◆ InstallFunction() [2/2]
| void xalanc::XPathFunctionTable::InstallFunction |
( |
const XalanDOMString & |
theFunctionName, |
|
|
const Function & |
theFunction |
|
) |
| |
|
inline |
◆ isInstalledFunction()
| bool xalanc::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.
◆ nameToID()
| int xalanc::XPathFunctionTable::nameToID |
( |
const XalanDOMString & |
theName | ) |
const |
|
inline |
Map a function name to the corresponding ID number.
- Parameters
-
- Returns
- The ID number of function, or InvalidFunctionNumberID if the function doesn't exist.
Definition at line 239 of file XPathFunctionTable.hpp.
◆ operator[]()
| const Function& xalanc::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.
◆ setMemoryManager()
| void xalanc::XPathFunctionTable::setMemoryManager |
( |
MemoryManager & |
theManager | ) |
|
|
inline |
◆ UninstallFunction() [1/2]
| bool xalanc::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.
◆ UninstallFunction() [2/2]
| bool xalanc::XPathFunctionTable::UninstallFunction |
( |
const XalanDOMString & |
theFunctionName | ) |
|
|
inline |
◆ s_boolean
| const XalanDOMChar xalanc::XPathFunctionTable::s_boolean[] |
|
static |
◆ s_ceiling
| const XalanDOMChar xalanc::XPathFunctionTable::s_ceiling[] |
|
static |
◆ s_concat
| const XalanDOMChar xalanc::XPathFunctionTable::s_concat[] |
|
static |
◆ s_contains
| const XalanDOMChar xalanc::XPathFunctionTable::s_contains[] |
|
static |
◆ s_count
| const XalanDOMChar xalanc::XPathFunctionTable::s_count[] |
|
static |
◆ s_current
| const XalanDOMChar xalanc::XPathFunctionTable::s_current[] |
|
static |
◆ s_document
| const XalanDOMChar xalanc::XPathFunctionTable::s_document[] |
|
static |
◆ s_elementAvailable
| const XalanDOMChar xalanc::XPathFunctionTable::s_elementAvailable[] |
|
static |
◆ s_false
| const XalanDOMChar xalanc::XPathFunctionTable::s_false[] |
|
static |
◆ s_floor
| const XalanDOMChar xalanc::XPathFunctionTable::s_floor[] |
|
static |
◆ s_formatNumber
| const XalanDOMChar xalanc::XPathFunctionTable::s_formatNumber[] |
|
static |
◆ s_functionAvailable
| const XalanDOMChar xalanc::XPathFunctionTable::s_functionAvailable[] |
|
static |
◆ s_functionNames
◆ s_functionNamesSize
| const SizeType xalanc::XPathFunctionTable::s_functionNamesSize |
|
static |
◆ s_generateId
| const XalanDOMChar xalanc::XPathFunctionTable::s_generateId[] |
|
static |
◆ s_id
| const XalanDOMChar xalanc::XPathFunctionTable::s_id[] |
|
static |
◆ s_key
| const XalanDOMChar xalanc::XPathFunctionTable::s_key[] |
|
static |
◆ s_lang
| const XalanDOMChar xalanc::XPathFunctionTable::s_lang[] |
|
static |
◆ s_last
| const XalanDOMChar xalanc::XPathFunctionTable::s_last[] |
|
static |
◆ s_localName
| const XalanDOMChar xalanc::XPathFunctionTable::s_localName[] |
|
static |
◆ s_name
| const XalanDOMChar xalanc::XPathFunctionTable::s_name[] |
|
static |
◆ s_namespaceUri
| const XalanDOMChar xalanc::XPathFunctionTable::s_namespaceUri[] |
|
static |
◆ s_normalizeSpace
| const XalanDOMChar xalanc::XPathFunctionTable::s_normalizeSpace[] |
|
static |
◆ s_not
| const XalanDOMChar xalanc::XPathFunctionTable::s_not[] |
|
static |
◆ s_number
| const XalanDOMChar xalanc::XPathFunctionTable::s_number[] |
|
static |
◆ s_position
| const XalanDOMChar xalanc::XPathFunctionTable::s_position[] |
|
static |
◆ s_round
| const XalanDOMChar xalanc::XPathFunctionTable::s_round[] |
|
static |
◆ s_startsWith
| const XalanDOMChar xalanc::XPathFunctionTable::s_startsWith[] |
|
static |
◆ s_string
| const XalanDOMChar xalanc::XPathFunctionTable::s_string[] |
|
static |
◆ s_stringLength
| const XalanDOMChar xalanc::XPathFunctionTable::s_stringLength[] |
|
static |
◆ s_substring
| const XalanDOMChar xalanc::XPathFunctionTable::s_substring[] |
|
static |
◆ s_substringAfter
| const XalanDOMChar xalanc::XPathFunctionTable::s_substringAfter[] |
|
static |
◆ s_substringBefore
| const XalanDOMChar xalanc::XPathFunctionTable::s_substringBefore[] |
|
static |
◆ s_sum
| const XalanDOMChar xalanc::XPathFunctionTable::s_sum[] |
|
static |
◆ s_systemProperty
| const XalanDOMChar xalanc::XPathFunctionTable::s_systemProperty[] |
|
static |
◆ s_translate
| const XalanDOMChar xalanc::XPathFunctionTable::s_translate[] |
|
static |
◆ s_true
| const XalanDOMChar xalanc::XPathFunctionTable::s_true[] |
|
static |
◆ s_unparsedEntityUri
| const XalanDOMChar xalanc::XPathFunctionTable::s_unparsedEntityUri[] |
|
static |
The documentation for this class was generated from the following file: