fcml  1.2.2
Public Member Functions | List of all members
fcml::CodeIterator Class Reference

Iterates over machine code bytes from assembled instructions. More...

#include <fcml_assembler.hpp>

Inheritance diagram for fcml::CodeIterator:
Inheritance graph
[legend]
Collaboration diagram for fcml::CodeIterator:
Collaboration graph
[legend]

Public Member Functions

 CodeIterator (std::vector< AssembledInstruction > &assembledInstructions)
 Creates a code iterator instance. More...
 
virtual ~CodeIterator ()
 
bool hasNext ()
 Gets true if there is an another element in the iterator. More...
 
fcml_uint8_t next ()
 Gets the next element from the iterator. More...
 

Detailed Description

Iterates over machine code bytes from assembled instructions.

Since
1.1.0

Constructor & Destructor Documentation

◆ CodeIterator()

fcml::CodeIterator::CodeIterator ( std::vector< AssembledInstruction > &  assembledInstructions)
inline

Creates a code iterator instance.

Parameters
assembledInstructionsAssembled instructions.
Since
1.1.0

◆ ~CodeIterator()

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

Member Function Documentation

◆ hasNext()

bool fcml::CodeIterator::hasNext ( )
inlinevirtual

Gets true if there is an another element in the iterator.

Returns
True if there is another byte in the iterator.
Since
1.1.0

Implements fcml::Iterator< fcml_uint8_t >.

◆ next()

fcml_uint8_t fcml::CodeIterator::next ( )
inlinevirtual

Gets the next element from the iterator.

Returns
Next machine code byte.
Exceptions
IllegalStateExceptionIf iterator is empty.
Since
1.1.0

Implements fcml::Iterator< fcml_uint8_t >.


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