OpenASIP  2.0
Public Member Functions | List of all members
DisassemblySequentialGuard Class Reference

#include <DisassemblySequentialGuard.hh>

Inheritance diagram for DisassemblySequentialGuard:
Inheritance graph
Collaboration diagram for DisassemblySequentialGuard:
Collaboration graph

Public Member Functions

 DisassemblySequentialGuard (bool inverted)
 
virtual ~DisassemblySequentialGuard ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from DisassemblyGuard
 DisassemblyGuard (DisassemblyElement *guarded, bool inverted)
 
virtual ~DisassemblyGuard ()
 
const DisassemblyElementguardedElement () const
 
bool inverted () const
 

Additional Inherited Members

- Protected Attributes inherited from DisassemblyGuard
bool inverted_
 True, if the guard is inverted. More...
 

Detailed Description

Represents a guard for the Disassembler.

Definition at line 41 of file DisassemblySequentialGuard.hh.

Constructor & Destructor Documentation

◆ DisassemblySequentialGuard()

DisassemblySequentialGuard::DisassemblySequentialGuard ( bool  inverted)

The constructor.

Parameters
invertedDefines if the guard is inverted or not.

Definition at line 41 of file DisassemblySequentialGuard.cc.

41  :
43 }

◆ ~DisassemblySequentialGuard()

DisassemblySequentialGuard::~DisassemblySequentialGuard ( )
virtual

The destructor.

Definition at line 49 of file DisassemblySequentialGuard.cc.

49  {
50 }

Member Function Documentation

◆ toString()

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

Returns disassembly of the guard.

Returns
Disassembly of the guard as a string.

Reimplemented from DisassemblyGuard.

Definition at line 58 of file DisassemblySequentialGuard.cc.

58  {
59  std::string disassembly;
60  if (inverted_) {
61  disassembly = "! ";
62  } else {
63  disassembly = "? ";
64  }
65  return disassembly;
66 }

References DisassemblyGuard::inverted_.


The documentation for this class was generated from the following files:
DisassemblyGuard::inverted_
bool inverted_
True, if the guard is inverted.
Definition: DisassemblyGuard.hh:51
DisassemblyGuard::DisassemblyGuard
DisassemblyGuard(DisassemblyElement *guarded, bool inverted)
Definition: DisassemblyGuard.cc:41
DisassemblyGuard::inverted
bool inverted() const
Definition: DisassemblyGuard.cc:62
DisassemblyBoolRegister
Definition: DisassemblyBoolRegister.hh:42