top | up | prev | next

XPathGreaterExpr Class

Definition at line 95 of XPathExpr.hpp

Constructors

XPathGreaterExpr(XPathExpr* left_, XPathExpr* right_)

Member Functions

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

Constructor Details

XPathGreaterExpr Constructor

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

Definition at line 852 of XPathExpr.cpp :
 852 : XPathBinaryExpr(left_right_)
 853 {
 854 }


Declaration at line 98 of XPathExpr.hpp


Member Function Details

Evaluate Member Function

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

Definition at line 856 of XPathExpr.cpp :
 857 {
 858     std::unique_ptr<XPathObject> left = Left()->Evaluate(context);
 859     std::unique_ptr<XPathObject> right = Right()->Evaluate(context);
 860     return Compare(contextleft.get()right.get()Operator::greater);
 861 }


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

Definition at line 863 of XPathExpr.cpp :
 864 {
 865     std::unique_ptr<dom::Element> element(new dom::Element(U"greater"));
 866     element->AppendChild(Left()->ToDom());
 867     element->AppendChild(Right()->ToDom());
 868     return std::unique_ptr<dom::Node>(element.release());
 869 }


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