OpenASIP  2.0
Public Member Functions | List of all members
TTAProgram::DataLabel Class Reference

#include <DataLabel.hh>

Inheritance diagram for TTAProgram::DataLabel:
Inheritance graph
Collaboration diagram for TTAProgram::DataLabel:
Collaboration graph

Public Member Functions

 DataLabel (const std::string &name, Address address, const Scope &scope)
 
virtual ~DataLabel ()
 
- Public Member Functions inherited from TTAProgram::Label
virtual ~Label ()
 
std::string name () const
 
virtual Address address () const
 
const Scopescope () const
 
void setAddress (Address address)
 

Additional Inherited Members

- Protected Member Functions inherited from TTAProgram::Label
 Label ()
 
 Label (const std::string &name, Address address, const Scope &scope)
 
void setName (const std::string &name)
 
void setScope (const Scope &scope)
 

Detailed Description

A symbol that represents a location in the data area used by the program.

Usually, a data label is the starting address of a program variable.

Definition at line 45 of file DataLabel.hh.

Constructor & Destructor Documentation

◆ DataLabel()

TTAProgram::DataLabel::DataLabel ( const std::string &  name,
Address  address,
const Scope scope 
)

The constructor.

Registers this label to the owning scope.

Parameters
nameName of the label. Must be unique within the owning scope.
addressThe address of the location corresponding to this label.
scopeThe innermost scope that contains this label.

Definition at line 53 of file DataLabel.cc.

54  :
55  Label(name, address, scope) {
56 }

◆ ~DataLabel()

TTAProgram::DataLabel::~DataLabel ( )
virtual

The destructor.

Definition at line 61 of file DataLabel.cc.

61  {
62 }

The documentation for this class was generated from the following files:
TTAProgram::Label::Label
Label()
Definition: Label.cc:46
TTAProgram::Label::name
std::string name() const
Definition: Label.cc:74
TTAProgram::Label::address
virtual Address address() const
Definition: Label.cc:84
TTAProgram::Label::scope
const Scope & scope() const
Definition: Label.cc:94