top | up | prev | next

MemberFunctionNode Class

Definition at line 152 of Class.hpp

Constructors

MemberFunctionNode(const Span& span_)
MemberFunctionNode(const Span& span_, Specifiers specifiers_, Node* returnTypeExpr_, const std::u32string& groupId_, Attributes* attributes_)

Member Functions

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

Constructor Details

MemberFunctionNode Constructor

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

Definition at line 439 of Class.cpp :
439 : FunctionNode(NodeType::memberFunctionNodespan_)
440 {
441 }


Declaration at line 155 of Class.hpp


MemberFunctionNode Constructor

sngcm::ast::MemberFunctionNode::MemberFunctionNode(const Span& span_, Specifiers specifiers_, Node * returnTypeExpr_, const std::u32string& groupId_, Attributes * attributes_)

Definition at line 443 of Class.cpp :
443 :
444 FunctionNode(NodeType::memberFunctionNodespan_specifiers_returnTypeExpr_groupId_attributes_)
445 {
446 }


Declaration at line 156 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 459 of Class.cpp :
460 {
461     visitor.Visit(*this);
462 }


Declaration at line 158 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::MemberFunctionNode::Clone(CloneContext & cloneContext) const override

Definition at line 448 of Class.cpp :
449 {
450     MemberFunctionNode* clone = new MemberFunctionNode(GetSpan());
451     CloneContent(clonecloneContext);
452     if (IsConst())
453     {
454         clone->SetConst();
455     }
456     return clone;
457 }


Declaration at line 157 of Class.hpp

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

Calls: sngcm::ast::FunctionNode::CloneContent , sngcm::ast::MemberFunctionNode::IsConst , sngcm::ast::MemberFunctionNode::SetConst , sngcm::ast::Node::GetSpan


IsConst Member Function

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

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

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

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


SetConst Member Function

void sngcm::ast::MemberFunctionNode::SetConst()

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

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

Called by: sngcm::ast::MemberFunctionNode::Clone


top | up | prev | next