OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
TTAProgram::GlobalScope::LabelOwner Class Reference
Collaboration diagram for TTAProgram::GlobalScope::LabelOwner:
Collaboration graph

Public Member Functions

 LabelOwner (const Label &label, const Scope &owner)
 
 ~LabelOwner ()
 
const Labellabel () const
 
const Scopescope () const
 

Private Attributes

const Labellabel_
 The label. More...
 
const Scopeowner_
 The owner scope of the label. More...
 

Detailed Description

Connects a label and its owner for bookkeeping.

Definition at line 90 of file GlobalScope.hh.

Constructor & Destructor Documentation

◆ LabelOwner()

TTAProgram::GlobalScope::LabelOwner::LabelOwner ( const Label label,
const Scope owner 
)

Constructor.

Parameters
labelThe label.
ownerThe owner scope of the label.

Definition at line 386 of file GlobalScope.cc.

386  :
387  label_(&label), owner_(&owner) {
388 }

◆ ~LabelOwner()

TTAProgram::GlobalScope::LabelOwner::~LabelOwner ( )

Destructor.

Note
Is this really the owner of the label? Then it should delete it!

Definition at line 395 of file GlobalScope.cc.

395  {
396 }

Member Function Documentation

◆ label()

const Label & TTAProgram::GlobalScope::LabelOwner::label ( ) const

Returns the label.

Returns
The label.

Definition at line 404 of file GlobalScope.cc.

404  {
405  return *label_;
406 }

◆ scope()

const Scope & TTAProgram::GlobalScope::LabelOwner::scope ( ) const

Returns the owning scope of the label.

Returns
The owning scope.

Definition at line 414 of file GlobalScope.cc.

414  {
415  return *owner_;
416 }

Member Data Documentation

◆ label_

const Label* TTAProgram::GlobalScope::LabelOwner::label_
private

The label.

Definition at line 98 of file GlobalScope.hh.

◆ owner_

const Scope* TTAProgram::GlobalScope::LabelOwner::owner_
private

The owner scope of the label.

Definition at line 100 of file GlobalScope.hh.


The documentation for this class was generated from the following files:
TTAProgram::GlobalScope::LabelOwner::label
const Label & label() const
Definition: GlobalScope.cc:404
TTAProgram::GlobalScope::LabelOwner::owner_
const Scope * owner_
The owner scope of the label.
Definition: GlobalScope.hh:100
TTAProgram::GlobalScope::LabelOwner::label_
const Label * label_
The label.
Definition: GlobalScope.hh:98