top | up | prev | next

BitXorNode Class

Definition at line 95 of Expression.hpp

Constructors

BitXorNode(const Span& span_, const boost::uuids::uuid& moduleId_)
BitXorNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node* left_, Node* right_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

BitXorNode Constructor

sngcm::ast::BitXorNode::BitXorNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 213 of Expression.cpp :
 213 : BinaryNode(NodeType::bitXorNodespan_moduleId_)
 214 {
 215 }


Declaration at line 98 of Expression.hpp


BitXorNode Constructor

sngcm::ast::BitXorNode::BitXorNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * left_, Node * right_)

Definition at line 217 of Expression.cpp :
 217 :
 218 BinaryNode(NodeType::bitXorNodespan_moduleId_left_right_)
 219 {
 220 }


Declaration at line 99 of Expression.hpp


Member Function Details

Accept Member Function

void sngcm::ast::BitXorNode::Accept(Visitor & visitor) override

Definition at line 228 of Expression.cpp :
 229 {
 230     visitor.Visit(*this);
 231 }


Declaration at line 101 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Accept

Calls: sngcm::ast::Visitor::Visit


Clone Member Function

Node * sngcm::ast::BitXorNode::Clone(CloneContext & cloneContext) const override

Definition at line 222 of Expression.cpp :
 223 {
 224     BitXorNode* clone = new BitXorNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 225     return clone;
 226 }


Declaration at line 100 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


ToString Member Function

std::string sngcm::ast::BitXorNode::ToString() const override

Definition at line 233 of Expression.cpp :
 234 {
 235     return Left()->ToString() + " ^ " + Right()->ToString();
 236 }


Declaration at line 102 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::ToString

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::ToString


top | up | prev | next