top | up | prev | next

XPathOrExpr Class

Definition at line 55 of XPathExpr.hpp

Constructors

XPathOrExpr(XPathExpr* left_, XPathExpr* right_)

Member Functions

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

Constructor Details

XPathOrExpr Constructor

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

Definition at line 35 of XPathExpr.cpp :
  35 : XPathBinaryExpr(left_right_)
  36 {
  37 }


Declaration at line 58 of XPathExpr.hpp


Member Function Details

Evaluate Member Function

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

Definition at line 39 of XPathExpr.cpp
Declaration at line 59 of XPathExpr.hpp

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

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


ToDom Member Function

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

Definition at line 65 of XPathExpr.cpp :
  66 {
  67     std::unique_ptr<dom::Element> element(new dom::Element(U"or"));
  68     element->AppendChild(Left()->ToDom());
  69     element->AppendChild(Right()->ToDom());
  70     return std::unique_ptr<dom::Node>(element.release());
  71 }


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