top | up | prev | next

BoundNamespace Class

Definition at line 15 of BoundNamespace.hpp

Constructors

BoundNamespace(NamespaceNode& namespaceNode_)
BoundNamespace(const BoundNamespace&) delete

Member Functions

void Accept(BoundNodeVisitor& visitor) override
void AddMember(std::unique_ptr<BoundNode>&& member)
NamespaceNode& GetNamespaceNode()
void Load(Emitter& emitter, OperationFlags flags) override
const std::vector<std::unique_ptr<BoundNode>>& Members() const
void Store(Emitter& emitter, OperationFlags flags) override
BoundNamespace& operator=(const BoundNamespace&) delete

Member Variables

std::vector<std::unique_ptr<BoundNode>> members
NamespaceNode& namespaceNode

Constructor Details

BoundNamespace Constructor

cmajor::binder::BoundNamespace::BoundNamespace(NamespaceNode& namespaceNode_)

Definition at line 14 of BoundNamespace.cpp :
14 : BoundNode(namespaceNode_.GetSpan()namespaceNode_.ModuleId()BoundNodeType::boundNamespace)namespaceNode(namespaceNode_)
15 {
16 }



BoundNamespace Constructor

cmajor::binder::BoundNamespace::BoundNamespace(const BoundNamespace &) delete

Definition at line 19 of BoundNamespace.hpp


Member Function Details

Accept Member Function

void cmajor::binder::BoundNamespace::Accept(BoundNodeVisitor & visitor) override

Definition at line 18 of BoundNamespace.cpp :
19 {
20     visitor.Visit(*this);
21 }


Declaration at line 21 of BoundNamespace.hpp

Base class overridden functions: cmajor::binder::BoundNode::Accept

Calls: cmajor::binder::BoundNodeVisitor::Visit


AddMember Member Function

void cmajor::binder::BoundNamespace::AddMember(std::unique_ptr<BoundNode >&& member)

Definition at line 33 of BoundNamespace.cpp :
34 {
35     members.push_back(std::move(member));
36 }


Declaration at line 25 of BoundNamespace.hpp

Called by: cmajor::binder::BoundCompileUnit::AddBoundNode


GetNamespaceNode Member Function

NamespaceNode & cmajor::binder::BoundNamespace::GetNamespaceNode()

Definition at line 24 of BoundNamespace.hpp :
24 { return namespaceNode; }


Load Member Function

void cmajor::binder::BoundNamespace::Load(Emitter & emitter, OperationFlags flags) override

Definition at line 23 of BoundNamespace.cpp :
24 {
25     throw Exception("cannot load a namespace"GetSpan()ModuleId());
26 }


Declaration at line 22 of BoundNamespace.hpp

Base class overridden functions: cmajor::ir::GenObject::Load

Calls: cmajor::binder::BoundNode::GetSpan , cmajor::binder::BoundNode::ModuleId


Members Member Function

const std::vector<std::unique_ptr<BoundNode >>& cmajor::binder::BoundNamespace::Members() const

Definition at line 26 of BoundNamespace.hpp :
26 { return members; }


Store Member Function

void cmajor::binder::BoundNamespace::Store(Emitter & emitter, OperationFlags flags) override

Definition at line 28 of BoundNamespace.cpp :
29 {
30     throw Exception("cannot store a namespace"GetSpan()ModuleId());
31 }


Declaration at line 23 of BoundNamespace.hpp

Base class overridden functions: cmajor::ir::GenObject::Store

Calls: cmajor::binder::BoundNode::GetSpan , cmajor::binder::BoundNode::ModuleId


operator= Member Function

BoundNamespace & cmajor::binder::BoundNamespace::operator=(const BoundNamespace &) delete

Definition at line 20 of BoundNamespace.hpp


top | up | prev | next