|
fcml 1.3.0
|
#include <fcml_assembler.hpp>
Public Member Functions | |
| AssemblerResult () | |
| const AssembledInstruction * | getChosenInstruction () const |
| Gets instruction chosen by the assembler as the preferred one. | |
| const ErrorContainer & | getErrorContainer () const |
| Gets errors container. | |
| fcml_usize | getSize () const |
| Gets number of instructions alternatives available in the result. | |
| operator const AssembledInstruction * () const | |
| Gets pointer to the chosen instruction. | |
| const AssembledInstruction & | operator[] (fcml_usize index) const |
| Gets an assembled instruction reference by its index. | |
| void | clear () |
| Clears assembler result by removing all assembled instructions, errors and reseting the chosen instruction. | |
Protected Member Functions | |
| void | setErrorContainer (const ErrorContainer &errorContainer) |
| std::vector< AssembledInstruction > & | getAssembledInstructions () |
| void | setChoosenInstructionIndex (fcml_int index) |
Protected Attributes | |
| friend | Assembler |
Friends | |
| std::basic_ostream< fcml_uint8_t > & | operator<< (std::basic_ostream< fcml_uint8_t > &out, const AssemblerResult &result) |
| Copies machine code of the chosen instruction to the output stream. | |
Assembler result.
|
inline |
|
inline |
Clears assembler result by removing all assembled instructions, errors and reseting the chosen instruction.
|
inline |
Gets instruction chosen by the assembler as the preferred one.
|
inline |
Gets errors container.
|
inline |
Gets number of instructions alternatives available in the result.
|
inline |
Gets pointer to the chosen instruction.
|
inline |
Gets an assembled instruction reference by its index.
| BadArgumentException | Array index out of bound. |
|
friend |
Copies machine code of the chosen instruction to the output stream.
| [out] | out | Output stream. |
| result | Assembler result. |