top | up | prev | next

ConversionFunctionNode Class

Definition at line 163 of Class.hpp

Constructors

ConversionFunctionNode(const Span& span_, const boost::uuids::uuid& moduleId_)
ConversionFunctionNode(const Span& span_, const boost::uuids::uuid& moduleId_, Specifiers specifiers_, Node* returnTypeExpr_, AttributesNode* attributes_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
bool IsConst() const
void SetConst()

Constructor Details

ConversionFunctionNode Constructor

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

Definition at line 468 of Class.cpp :
468 : FunctionNode(NodeType::conversionFunctionNodespan_moduleId_)
469 {
470 }


Declaration at line 166 of Class.hpp


ConversionFunctionNode Constructor

sngcm::ast::ConversionFunctionNode::ConversionFunctionNode(const Span& span_, const boost::uuids::uuid& moduleId_, Specifiers specifiers_, Node * returnTypeExpr_, AttributesNode * attributes_)

Definition at line 472 of Class.cpp :
472 :
473 FunctionNode(NodeType::conversionFunctionNodespan_moduleId_specifiers_returnTypeExpr_U"@operator_conv"attributes_)
474 {
475 }


Declaration at line 167 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 488 of Class.cpp :
489 {
490     visitor.Visit(*this);
491 }


Declaration at line 169 of Class.hpp

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

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


Clone Member Function

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

Definition at line 477 of Class.cpp :
478 {
479     ConversionFunctionNode* clone = new ConversionFunctionNode(GetSpan()ModuleId());
480     CloneContent(clonecloneContext);
481     if (IsConst())
482     {
483         clone->SetConst();
484     }
485     return clone;
486 }


Declaration at line 168 of Class.hpp

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

Calls: sngcm::ast::ConversionFunctionNode::IsConst , sngcm::ast::ConversionFunctionNode::SetConst , sngcm::ast::FunctionNode::CloneContent , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


IsConst Member Function

bool sngcm::ast::ConversionFunctionNode::IsConst() const

Definition at line 170 of Class.hpp :
170 { return (GetSpecifiers() & Specifiers::const_) != Specifiers::none; }

Calls: sngcm::ast::FunctionNode::GetSpecifiers

Called by: sngcm::ast::ConversionFunctionNode::Clone , sngcm::ast::SourceWriter::Visit


SetConst Member Function

void sngcm::ast::ConversionFunctionNode::SetConst()

Definition at line 171 of Class.hpp :
171 { SetSpecifiers(GetSpecifiers() | Specifiers::const_); }

Calls: sngcm::ast::FunctionNode::GetSpecifiers , sngcm::ast::FunctionNode::SetSpecifiers

Called by: sngcm::ast::ConversionFunctionNode::Clone


top | up | prev | next