fcml  1.1.3
Public Member Functions | List of all members
fcml::AssembledInstruction Class Reference

Describes an assembled instruction. More...

#include <fcml_assembler.hpp>

Public Member Functions

 AssembledInstruction (const fcml_uint8_t *buffer, fcml_usize len, const ErrorContainer &errorContainer)
 Creates an assembled instruction basing on given code buffer and errors. More...
 
 AssembledInstruction (const AssembledInstruction &cpy)
 Copy constructor. More...
 
AssembledInstructionoperator= (const AssembledInstruction &cpy)
 Copies one instruction into another. More...
 
virtual ~AssembledInstruction ()
 
const fcml_uint8_t * getCode () const
 Gets pointer to machine code buffer. More...
 
fcml_usize getCodeLength () const
 Gets number of bytes in the buffer. More...
 
const ErrorContainergetWarningContainer () const
 Gets reference to the errors container. More...
 

Detailed Description

Describes an assembled instruction.

Since
1.1.0

Constructor & Destructor Documentation

fcml::AssembledInstruction::AssembledInstruction ( const fcml_uint8_t *  buffer,
fcml_usize  len,
const ErrorContainer errorContainer 
)
inline

Creates an assembled instruction basing on given code buffer and errors.

Parameters
bufferPointer to the machine code buffer.
lenNumber of machine code bytes.
errorContainerPotential warnings related to the assembled instruction.
Since
1.1.0
fcml::AssembledInstruction::AssembledInstruction ( const AssembledInstruction cpy)
inline

Copy constructor.

Since
1.1.0
virtual fcml::AssembledInstruction::~AssembledInstruction ( )
inlinevirtual
Since
1.1.0

Member Function Documentation

const fcml_uint8_t* fcml::AssembledInstruction::getCode ( ) const
inline

Gets pointer to machine code buffer.

Returns
Pointer to machine code buffer.
Since
1.1.0
fcml_usize fcml::AssembledInstruction::getCodeLength ( ) const
inline

Gets number of bytes in the buffer.

Returns
Number of bytes in the buffer.
Since
1.1.0
const ErrorContainer& fcml::AssembledInstruction::getWarningContainer ( ) const
inline

Gets reference to the errors container.

Returns
A reference to the errors container.
Since
1.1.0
AssembledInstruction& fcml::AssembledInstruction::operator= ( const AssembledInstruction cpy)
inline

Copies one instruction into another.

Parameters
cpyThe source instruction.
Returns
A reference to the destination instruction.
Since
1.1.0

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