top | up | prev | next

BitOrNode Class

Definition at line 85 of Expression.hpp

Constructors

BitOrNode(const Span& span_, const boost::uuids::uuid& moduleId_)
BitOrNode(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

BitOrNode Constructor

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

Definition at line 189 of Expression.cpp :
 189 : BinaryNode(NodeType::bitOrNodespan_moduleId_)
 190 {
 191 }


Declaration at line 88 of Expression.hpp


BitOrNode Constructor

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

Definition at line 193 of Expression.cpp :
 193 : BinaryNode(NodeType::bitOrNodespan_moduleId_left_right_)
 194 {
 195 }


Declaration at line 89 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 203 of Expression.cpp :
 204 {
 205     visitor.Visit(*this);
 206 }


Declaration at line 91 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 197 of Expression.cpp :
 198 {
 199     BitOrNode* clone = new BitOrNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 200     return clone;
 201 }


Declaration at line 90 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::BitOrNode::ToString() const override

Definition at line 208 of Expression.cpp :
 209 {
 210     return Left()->ToString() + " | " + Right()->ToString();
 211 }


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