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

Disassembler wrapper. More...

#include <fcml_disassembler.hpp>

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

Public Member Functions

 Disassembler (Dialect &dialect)
 Creates a disassembler instance for the given dialect. More...
 
virtual ~Disassembler ()
 Destructor. More...
 
fcml_ceh_error disassemble (DisassemblerContext &ctx, DisassemblerResult &disassemblerResult)
 Disassembled the next instruction from the context. More...
 
DialectgetDialect () const
 Gets dialect associated with the disassembler. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fcml::DialectAware
 DialectAware ()
 Default constructor. More...
 
virtual ~DialectAware ()
 Virtual destructor. More...
 
fcml_st_dialectextractDialect (const Dialect &dialect) const
 Extracts the native FCML dialect from the dialect object. More...
 

Detailed Description

Disassembler wrapper.

Since
1.1.0

Constructor & Destructor Documentation

◆ Disassembler()

fcml::Disassembler::Disassembler ( Dialect dialect)
inline

Creates a disassembler instance for the given dialect.

Parameters
dialectThe dialect for the disassembler.
Exceptions
InitExceptionCannot initialize the disassembler.
Since
1.1.0

◆ ~Disassembler()

virtual fcml::Disassembler::~Disassembler ( )
inlinevirtual

Destructor.

Since
1.1.0

Member Function Documentation

◆ disassemble()

fcml_ceh_error fcml::Disassembler::disassemble ( DisassemblerContext ctx,
DisassemblerResult disassemblerResult 
)
inline

Disassembled the next instruction from the context.

Parameters
ctxContext describing the next instruction to disassemble.
[out]disassemblerResultDisassembler result.
Exceptions
DisassemblingFailedExceptionDisassemblation failed.
Returns
Error code.
Since
1.1.0

◆ getDialect()

Dialect& fcml::Disassembler::getDialect ( ) const
inline

Gets dialect associated with the disassembler.

Returns
The dialect instance associated with the disassembler.
Since
1.1.0

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