OpenASIP 2.2
Loading...
Searching...
No Matches
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.
 
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}
LabelManager & manager_
TPEF::ASpaceElement & aSpace_
std::string & name_

Member Function Documentation

◆ operator()()

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

Definition at line 175 of file AssemblerParser.cc.

175 {
177}
void addLabel(TPEF::ASpaceElement &aSpace, std::string &name, UValue value)

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: