OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
AddLabelActor Class Reference

#include <AssemblerParser.hh>

Collaboration diagram for AddLabelActor:
Collaboration graph

Public Member Functions

 AddLabelActor (LabelManager &manager, TPEF::ASpaceElement &aSpace, std::string &name, UValue &value)
 AddLabelActor. More...
 
void operator() (const char *, const char *) const
 

Private Attributes

LabelManagermanager_
 
TPEF::ASpaceElementaSpace_
 
std::string & name_
 
UValuevalue_
 

Detailed Description

Actor for adding labels.

Definition at line 268 of file AssemblerParser.hh.

Constructor & Destructor Documentation

◆ AddLabelActor()

AddLabelActor::AddLabelActor ( LabelManager manager,
TPEF::ASpaceElement aSpace,
std::string &  name,
UValue value 
)

AddLabelActor.

Adds new label to label manager.

Parameters
managerLabel manager that is used to label bookkeeping.
aSpaceAddress space for label.
nameLabel name.
valueValue of the label.

Definition at line 167 of file AssemblerParser.cc.

169  :
170  manager_(manager), aSpace_(aSpace),
171  name_(name), value_(value) {
172 }

Member Function Documentation

◆ operator()()

void AddLabelActor::operator() ( const char *  ,
const char *   
) const

Definition at line 175 of file AssemblerParser.cc.

175  {
177 }

References LabelManager::addLabel(), aSpace_, manager_, name_, and value_.

Here is the call graph for this function:

Member Data Documentation

◆ aSpace_

TPEF::ASpaceElement& AddLabelActor::aSpace_
private

Definition at line 278 of file AssemblerParser.hh.

Referenced by operator()().

◆ manager_

LabelManager& AddLabelActor::manager_
private

Definition at line 277 of file AssemblerParser.hh.

Referenced by operator()().

◆ name_

std::string& AddLabelActor::name_
private

Definition at line 279 of file AssemblerParser.hh.

Referenced by operator()().

◆ value_

UValue& AddLabelActor::value_
private

Definition at line 280 of file AssemblerParser.hh.

Referenced by operator()().


The documentation for this class was generated from the following files:
AddLabelActor::manager_
LabelManager & manager_
Definition: AssemblerParser.hh:277
AddLabelActor::name_
std::string & name_
Definition: AssemblerParser.hh:279
AddLabelActor::value_
UValue & value_
Definition: AssemblerParser.hh:280
LabelManager::addLabel
void addLabel(TPEF::ASpaceElement &aSpace, std::string &name, UValue value)
Definition: LabelManager.cc:160
AddLabelActor::aSpace_
TPEF::ASpaceElement & aSpace_
Definition: AssemblerParser.hh:278