fcml  1.2.2
Public Member Functions | Protected Member Functions | Friends | List of all members
fcml::MultiPassAssemblerResult Class Reference

Assembler result which contains all assembled instructions. More...

#include <fcml_lag_assembler.hpp>

Public Member Functions

 MultiPassAssemblerResult ()
 Default constructor. More...
 
virtual ~MultiPassAssemblerResult ()
 Virtual destructor. More...
 
const ErrorContainergetErrorContainer () const
 Gets error container. More...
 
fcml_usize getSize () const
 Gets number of assembled instructions. More...
 
const AssembledInstructionoperator[] (fcml_usize index) const
 Gets one assembled instruction by its index. More...
 
const std::vector< AssembledInstruction > & getAssembledInstructions () const
 Gets constant vector of all assembled instructions. More...
 
CodeIterator getCodeIterator ()
 Gets iterator which allows to iterate through the whole machine code byte by byte. More...
 
void clear ()
 Clears the result. More...
 

Protected Member Functions

std::vector< AssembledInstruction > & getAssembledInstructions ()
 Gets vector of all assembled instructions. More...
 
void setErrorContainer (const ErrorContainer &errorContainer)
 Sets new error container for the result. More...
 

Friends

class MultiPassAssembler
 Only the assembler can modify these objects. More...
 

Detailed Description

Assembler result which contains all assembled instructions.

Constructor & Destructor Documentation

◆ MultiPassAssemblerResult()

fcml::MultiPassAssemblerResult::MultiPassAssemblerResult ( )
inline

Default constructor.

Since
1.1.0

◆ ~MultiPassAssemblerResult()

virtual fcml::MultiPassAssemblerResult::~MultiPassAssemblerResult ( )
inlinevirtual

Virtual destructor.

Since
1.1.0

Member Function Documentation

◆ clear()

void fcml::MultiPassAssemblerResult::clear ( )
inline

Clears the result.

Remember not to use the CodeIterator after the result is cleared up.

Since
1.1.0

◆ getAssembledInstructions() [1/2]

const std::vector<AssembledInstruction>& fcml::MultiPassAssemblerResult::getAssembledInstructions ( ) const
inline

Gets constant vector of all assembled instructions.

Returns
Assembled instructions.
Since
1.1.0

◆ getAssembledInstructions() [2/2]

std::vector<AssembledInstruction>& fcml::MultiPassAssemblerResult::getAssembledInstructions ( )
inlineprotected

Gets vector of all assembled instructions.

Returns
Assembled instructions.
Since
1.1.0

◆ getCodeIterator()

CodeIterator fcml::MultiPassAssemblerResult::getCodeIterator ( )
inline

Gets iterator which allows to iterate through the whole machine code byte by byte.

Returns
Iterator instance.
Since
1.1.0

◆ getErrorContainer()

const ErrorContainer& fcml::MultiPassAssemblerResult::getErrorContainer ( ) const
inline

Gets error container.

Returns
Error container.
Since
1.1.0

◆ getSize()

fcml_usize fcml::MultiPassAssemblerResult::getSize ( ) const
inline

Gets number of assembled instructions.

Returns
Number of assembled instructions.
Since
1.1.0

◆ operator[]()

const AssembledInstruction& fcml::MultiPassAssemblerResult::operator[] ( fcml_usize  index) const
inline

Gets one assembled instruction by its index.

Parameters
indexThe index of the assembled instruction.
Returns
One assembled instruction at given index.
Exceptions
BadArgumentException
Since
1.1.0

◆ setErrorContainer()

void fcml::MultiPassAssemblerResult::setErrorContainer ( const ErrorContainer errorContainer)
inlineprotected

Sets new error container for the result.

Parameters
errorContainerThe new error container to be set.
Since
1.1.0

Friends And Related Function Documentation

◆ MultiPassAssembler

friend class MultiPassAssembler
friend

Only the assembler can modify these objects.


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