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

#include <DisassemblyLabel.hh>

Inheritance diagram for DisassemblyLabel:
Inheritance graph
Collaboration diagram for DisassemblyLabel:
Collaboration graph

Public Member Functions

 DisassemblyLabel (std::string label)
 
virtual ~DisassemblyLabel ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from DisassemblyElement
virtual ~DisassemblyElement ()
 

Private Attributes

std::string label_
 Name of the label. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DisassemblyElement
 DisassemblyElement ()
 

Detailed Description

Represents a code label in the disassembler.

Definition at line 41 of file DisassemblyLabel.hh.

Constructor & Destructor Documentation

◆ DisassemblyLabel()

DisassemblyLabel::DisassemblyLabel ( std::string  label)

The Constructor.

Parameters
labelLabel name.

Definition at line 41 of file DisassemblyLabel.cc.

41  :
43  label_(label) {
44 }

◆ ~DisassemblyLabel()

DisassemblyLabel::~DisassemblyLabel ( )
virtual

The destructor.

Definition at line 50 of file DisassemblyLabel.cc.

50  {
51 }

Member Function Documentation

◆ toString()

std::string DisassemblyLabel::toString ( ) const
virtual

Returns disassembly of the code label.

Returns
Disassembly of the code label as a string.

Implements DisassemblyElement.

Definition at line 60 of file DisassemblyLabel.cc.

60  {
61  return label_;
62 }

References label_.

Member Data Documentation

◆ label_

std::string DisassemblyLabel::label_
private

Name of the label.

Definition at line 48 of file DisassemblyLabel.hh.

Referenced by toString().


The documentation for this class was generated from the following files:
DisassemblyElement::DisassemblyElement
DisassemblyElement()
Definition: DisassemblyElement.cc:38
DisassemblyLabel::label_
std::string label_
Name of the label.
Definition: DisassemblyLabel.hh:48