![]() |
Qt 4.8
|
Implements the functions fn:exists()
and fn:empty()
.
More...
#include <qsequencefns_p.h>
Implements the functions fn:exists()
and fn:empty()
.
Existence is a template value class. Appropriate implementations are achieved by instantiating it with either IDExistsFN or IDEmptyFN.
Definition at line 132 of file qsequencefns_p.h.
|
inlinevirtual |
Attempts to rewrite to false
or true
by looking at the static cardinality of its operand.
Reimplemented from QPatternist::Expression.
Definition at line 147 of file qsequencefns_p.h.
|
inlinevirtual |
Determines the Effective Boolean Value of the expression.
The Effective Boolean Value of a value is not necessarily the same as converting the value to a new value of type xs:boolean.
Note that this function cannot return the empty sequence, evaluateSingleton() must be overridden in order to be able to do that.
The default implementation results in a type error. Hence, this function must be overridden if such behavior is not of interest.
Reimplemented from QPatternist::Expression.
Definition at line 135 of file qsequencefns_p.h.