top | up | prev | next

XPathLessOrEqualExpr Class

Definition at line 103 of XPathExpr.hpp

Constructors

XPathLessOrEqualExpr(XPathExpr* left_, XPathExpr* right_)

Member Functions

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

Constructor Details

XPathLessOrEqualExpr Constructor

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

Definition at line 871 of XPathExpr.cpp :
 871 : XPathBinaryExpr(left_right_)
 872 {
 873 }


Declaration at line 106 of XPathExpr.hpp


Member Function Details

Evaluate Member Function

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

Definition at line 875 of XPathExpr.cpp :
 876 {
 877     std::unique_ptr<XPathObject> left = Left()->Evaluate(context);
 878     std::unique_ptr<XPathObject> right = Right()->Evaluate(context);
 879     return Compare(contextleft.get()right.get()Operator::lessOrEqual);
 880 }


Declaration at line 107 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::XPathLessOrEqualExpr::ToDom() const override

Definition at line 882 of XPathExpr.cpp :
 883 {
 884     std::unique_ptr<dom::Element> element(new dom::Element(U"lessOrEqual"));
 885     element->AppendChild(Left()->ToDom());
 886     element->AppendChild(Right()->ToDom());
 887     return std::unique_ptr<dom::Node>(element.release());
 888 }


Declaration at line 108 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