Gymbo

Public Member Functions | Public Attributes | List of all members
gymbo::Instr Class Reference

Class representing an instruction. More...

`#include <type.h>`

## Public Member Functions
| Instr (InstrType instr)
| Constructor for an instruction without additional data. More...
| Instr (InstrType instr, Word32 word)
| Constructor for an instruction with additional data. More...
void | print () const
| Prints a human-readable representation of the instruction. More...
std::string | toString () const
| Converts the instruction to a string representation. More...

## Public Attributes
InstrType | instr
Word32 | word

## Detailed Description

Class representing an instruction.

## Constructor & Destructor Documentation

## ◆ Instr() [1/2]

gymbo::Instr::Instr | ( | InstrType | instr | ) |
| inline

Constructor for an instruction without additional data.

Parameters

  instr | The type of the instruction.

## ◆ Instr() [2/2]

gymbo::Instr::Instr | ( | InstrType | instr,
|  | Word32 | word
| ) |  |
| inline

Constructor for an instruction with additional data.

Parameters

  instr | The type of the instruction.
  word | Additional data associated with the instruction.

## Member Function Documentation

## ◆ print()

void gymbo::Instr::print | ( |  | ) | const
| inline

Prints a human-readable representation of the instruction.

## ◆ toString()

std::string gymbo::Instr::toString | ( |  | ) | const
| inline

Converts the instruction to a string representation.

Returns
  A string representation of the instruction.

## Member Data Documentation

## ◆ instr

InstrType gymbo::Instr::instr

## ◆ word

Word32 gymbo::Instr::word

The documentation for this class was generated from the following file:

- libgymbo/type.h