top | up | prev | next

MemberFunctionNode Class

Definition at line 152 of Class.hpp

Constructors

MemberFunctionNode(const Span& span_, const boost::uuids::uuid& moduleId_)
MemberFunctionNode(const Span& span_, const boost::uuids::uuid& moduleId_, Specifiers specifiers_, Node* returnTypeExpr_, const std::u32string& groupId_, AttributesNode* 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_, const boost::uuids::uuid& moduleId_)

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


Declaration at line 155 of Class.hpp


MemberFunctionNode Constructor

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

Definition at line 447 of Class.cpp :
447 :
448 FunctionNode(NodeType::memberFunctionNodespan_moduleId_specifiers_returnTypeExpr_groupId_attributes_)
449 {
450 }


Declaration at line 156 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 463 of Class.cpp :
464 {
465     visitor.Visit(*this);
466 }


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 452 of Class.cpp :
453 {
454     MemberFunctionNode* clone = new MemberFunctionNode(GetSpan()ModuleId());
455     CloneContent(clonecloneContext);
456     if (IsConst())
457     {
458         clone->SetConst();
459     }
460     return clone;
461 }


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 , sngcm::ast::Node::ModuleId


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