top | up | prev | next

XPathLessExpr Class

Definition at line 87 of XPathExpr.hpp

Constructors

XPathLessExpr(XPathExpr* left_, XPathExpr* right_)

Member Functions

std::unique_ptr<XPathObject> Evaluate(XPathContext& context) override
std::unique_ptr<Node> ToDom() const override

Constructor Details

XPathLessExpr Constructor

sngxml::xpath::XPathLessExpr::XPathLessExpr(XPathExpr * left_, XPathExpr * right_)

Definition at line 833 of XPathExpr.cpp :
 833 : XPathBinaryExpr(left_right_)
 834 {
 835 }


Declaration at line 90 of XPathExpr.hpp


Member Function Details

Evaluate Member Function

std::unique_ptr<XPathObject > sngxml::xpath::XPathLessExpr::Evaluate(XPathContext & context) override

Definition at line 837 of XPathExpr.cpp :
 838 {
 839     std::unique_ptr<XPathObject> left = Left()->Evaluate(context);
 840     std::unique_ptr<XPathObject> right = Right()->Evaluate(context);
 841     return Compare(contextleft.get()right.get()Operator::less);
 842 }


Declaration at line 91 of XPathExpr.hpp

Base class overridden functions: sngxml::xpath::XPathExpr::Evaluate

Calls: sngxml::xpath::XPathBinaryExpr::Left , sngxml::xpath::XPathBinaryExpr::Right , sngxml::xpath::XPathExpr::Evaluate


ToDom Member Function

std::unique_ptr<Node > sngxml::xpath::XPathLessExpr::ToDom() const override

Definition at line 844 of XPathExpr.cpp :
 845 {
 846     std::unique_ptr<dom::Element> element(new dom::Element(U"less"));
 847     element->AppendChild(Left()->ToDom());
 848     element->AppendChild(Right()->ToDom());
 849     return std::unique_ptr<dom::Node>(element.release());
 850 }


Declaration at line 92 of XPathExpr.hpp

Base class overridden functions: sngxml::xpath::XPathExpr::ToDom

Calls: sngxml::xpath::XPathBinaryExpr::Left , sngxml::xpath::XPathBinaryExpr::Right , sngxml::xpath::XPathExpr::ToDom


top | up | prev | next