top | up | prev | next

ByteNode Class

Definition at line 31 of BasicType.hpp

Constructors

ByteNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Member Functions

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

Constructor Details

ByteNode Constructor

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

Definition at line 41 of BasicType.cpp :
 41 : Node(NodeType::byteNodespan_moduleId_)
 42 {
 43 }


Declaration at line 34 of BasicType.hpp


Member Function Details

Accept Member Function

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

Definition at line 51 of BasicType.cpp :
 52 {
 53     visitor.Visit(*this);
 54 }


Declaration at line 36 of BasicType.hpp

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

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


Clone Member Function

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

Definition at line 45 of BasicType.cpp :
 46 {
 47     ByteNode* clone = new ByteNode(GetSpan()ModuleId());
 48     return clone;
 49 }


Declaration at line 35 of BasicType.hpp

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

Calls: sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


IsUnsignedTypeNode Member Function

bool sngcm::ast::ByteNode::IsUnsignedTypeNode() const override

Definition at line 37 of BasicType.hpp :
 37 { return true; }

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


ToString Member Function

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

Definition at line 38 of BasicType.hpp :
 38 { return "byte"; }

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


top | up | prev | next