top | up | prev | next

BitAndNode Class

Definition at line 105 of Expression.hpp

Constructors

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

BitAndNode Constructor

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

Definition at line 238 of Expression.cpp :
 238 : BinaryNode(NodeType::bitAndNodespan_moduleId_)
 239 {
 240 }


Declaration at line 108 of Expression.hpp


BitAndNode Constructor

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

Definition at line 242 of Expression.cpp :
 242 :
 243 BinaryNode(NodeType::bitAndNodespan_moduleId_left_right_)
 244 {
 245 }


Declaration at line 109 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 253 of Expression.cpp :
 254 {
 255     visitor.Visit(*this);
 256 }


Declaration at line 111 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 247 of Expression.cpp :
 248 {
 249     BitAndNode* clone = new BitAndNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 250     return clone;
 251 }


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

Definition at line 258 of Expression.cpp :
 259 {
 260     return Left()->ToString() + " & " + Right()->ToString();
 261 }


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