Class defines a table of functions that can be called in XPath expresions.
More...
#include <XPathFunctionTable.hpp>
Class defines a table of functions that can be called in XPath expresions.
Definition at line 93 of file XPathFunctionTable.hpp.
XPathFunctionTable::XPathFunctionTable |
( |
bool |
fCreateTable = true ) | |
|
Constructor.
- Parameters
-
fCreateTable | If true, the internal table will be created. Otherwise, CreateTable() must be called. |
XPathFunctionTable::~XPathFunctionTable |
( |
) | |
|
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.
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
-
- 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 |
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.
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.
const XalanDOMChar XPathFunctionTable::s_boolean[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_ceiling[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_concat[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_contains[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_count[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_current[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_document[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_elementAvailable[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_false[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_floor[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_formatNumber[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_functionAvailable[] |
|
static |
const SizeType XPathFunctionTable::s_functionNamesSize |
|
static |
const XalanDOMChar XPathFunctionTable::s_generateId[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_id[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_key[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_lang[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_last[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_localName[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_name[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_namespaceUri[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_normalizeSpace[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_not[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_number[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_position[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_round[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_startsWith[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_string[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_stringLength[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_substring[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_substringAfter[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_substringBefore[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_sum[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_systemProperty[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_translate[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_true[] |
|
static |
const XalanDOMChar XPathFunctionTable::s_unparsedEntityUri[] |
|
static |
The documentation for this class was generated from the following file: