top | up | prev | next

ConversionFunctionNode Class

Definition at line 163 of Class.hpp

Constructors

ConversionFunctionNode(const Span& span_)
ConversionFunctionNode(const Span& span_, Specifiers specifiers_, Node* returnTypeExpr_, Attributes* 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_)

Definition at line 464 of Class.cpp :
464 : FunctionNode(NodeType::conversionFunctionNodespan_)
465 {
466 }


Declaration at line 166 of Class.hpp


ConversionFunctionNode Constructor

sngcm::ast::ConversionFunctionNode::ConversionFunctionNode(const Span& span_, Specifiers specifiers_, Node * returnTypeExpr_, Attributes * attributes_)

Definition at line 468 of Class.cpp :
468 :
469 FunctionNode(NodeType::conversionFunctionNodespan_specifiers_returnTypeExpr_U"@operator_conv"attributes_)
470 {
471 }


Declaration at line 167 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 484 of Class.cpp :
485 {
486     visitor.Visit(*this);
487 }


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 473 of Class.cpp :
474 {
475     ConversionFunctionNode* clone = new ConversionFunctionNode(GetSpan());
476     CloneContent(clonecloneContext);
477     if (IsConst())
478     {
479         clone->SetConst();
480     }
481     return clone;
482 }


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


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