top | up | prev | next

XPathEqualExpr Class

Definition at line 71 of XPathExpr.hpp

Constructors

XPathEqualExpr(XPathExpr* left_, XPathExpr* right_)

Member Functions

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

Constructor Details

XPathEqualExpr Constructor

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

Definition at line 701 of XPathExpr.cpp :
 701 : XPathBinaryExpr(left_right_)
 702 {
 703 }


Declaration at line 74 of XPathExpr.hpp


Member Function Details

Evaluate Member Function

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

Definition at line 705 of XPathExpr.cpp :
 706 {
 707     std::unique_ptr<XPathObject> left = Left()->Evaluate(context);
 708     std::unique_ptr<XPathObject> right = Right()->Evaluate(context);
 709     return CompareEquality(contextleft.get()right.get());
 710 }


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

Definition at line 712 of XPathExpr.cpp :
 713 {
 714     std::unique_ptr<dom::Element> element(new dom::Element(U"equal"));
 715     element->AppendChild(Left()->ToDom());
 716     element->AppendChild(Right()->ToDom());
 717     return std::unique_ptr<dom::Node>(element.release());
 718 }


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