top
|
up
|
prev
|
next
XPathLastFunction Class
Definition at line
258
of
XPathFunction.cpp
Constructors
XPathLastFunction
()
Member Functions
std::unique_ptr<
XPathObject
>
Evaluate
(
XPathContext
& context, std::vector<
XPathObject
*>& arguments)
override
Constructor Details
XPathLastFunction Constructor
sngxml::xpath::XPathLastFunction::XPathLastFunction()
Definition at line
265
of
XPathFunction.cpp
:
265
:
XPathFunction
(
U"last"
,
0
,
0
)
266
{
267
}
Declaration at line
261
of
XPathFunction.cpp
Member Function Details
Evaluate Member Function
std::unique_ptr<
XPathObject
> sngxml::xpath::XPathLastFunction::Evaluate(
XPathContext
& context, std::vector<
XPathObject
*>& arguments)
override
Definition at line
269
of
XPathFunction.cpp
:
270
{
271
if
(
!
arguments
.
empty
(
)
)
272
{
273
throw
std
::
runtime_error
(
"sngxml::xpath::last() function requires no arguments"
)
;
274
}
275
return
std
::
unique_ptr
<
XPathObject
>
(
new
XPathNumber
(
context
.
Size
(
)
)
)
;
276
}
Declaration at line
262
of
XPathFunction.cpp
Base class overridden functions:
sngxml::xpath::XPathFunction::Evaluate
Calls:
sngxml::xpath::XPathContext::Size
top
|
up
|
prev
|
next