top | up | prev | next

DoubleNode Class

Definition at line 106 of BasicType.hpp

Constructors

DoubleNode(const Span& span_)

Member Functions

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

Constructor Details

DoubleNode Constructor

sngcm::ast::DoubleNode::DoubleNode(const Span& span_)

Definition at line 151 of BasicType.cpp :
151 : Node(NodeType::doubleNodespan_)
152 {
153 }


Declaration at line 109 of BasicType.hpp


Member Function Details

Accept Member Function

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

Definition at line 160 of BasicType.cpp :
161 {
162     visitor.Visit(*this);
163 }


Declaration at line 111 of BasicType.hpp

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

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


Clone Member Function

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

Definition at line 155 of BasicType.cpp :
156 {
157     return new DoubleNode(GetSpan());
158 }


Declaration at line 110 of BasicType.hpp

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

Calls: sngcm::ast::Node::GetSpan


ToString Member Function

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

Definition at line 112 of BasicType.hpp :
112 { return "double"; }

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


top | up | prev | next