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

#include <AssemblerParser.hh>

Collaboration diagram for SetGlobalActor:
Collaboration graph

Public Member Functions

 SetGlobalActor (LabelManager &manager)
 SetGlobalActor. More...
 
void operator() (const char *start, const char *end) const
 

Private Attributes

LabelManagermanager_
 

Detailed Description

Actor for setting label global.

Definition at line 303 of file AssemblerParser.hh.

Constructor & Destructor Documentation

◆ SetGlobalActor()

SetGlobalActor::SetGlobalActor ( LabelManager manager)

SetGlobalActor.

Sets label to be globally visible.

Parameters
managerManager wehere to set global.

Definition at line 210 of file AssemblerParser.cc.

210  :
211  manager_(manager) {
212 }

Member Function Documentation

◆ operator()()

void SetGlobalActor::operator() ( const char *  start,
const char *  end 
) const

Definition at line 215 of file AssemblerParser.cc.

215  {
216  std::string str(start, end);
217  manager_.setGlobal(str);
218 }

References manager_, and LabelManager::setGlobal().

Here is the call graph for this function:

Member Data Documentation

◆ manager_

LabelManager& SetGlobalActor::manager_
private

Definition at line 310 of file AssemblerParser.hh.

Referenced by operator()().


The documentation for this class was generated from the following files:
SetGlobalActor::manager_
LabelManager & manager_
Definition: AssemblerParser.hh:310
LabelManager::setGlobal
void setGlobal(std::string &labelName)
Definition: LabelManager.cc:217