disassembler_c Class Reference

Base class for a disassembler. More...

#include <disassembler.h>

Inheritance diagram for disassembler_c:

Inheritance graph

List of all members.

Public Member Functions

 disassembler_c (void)
virtual ~disassembler_c (void)
virtual separation_cdisassemble (const assembly_c *)
 Try to disassemble an assembly.

Private Member Functions

 disassembler_c (const disassembler_c &)
void operator= (const disassembler_c &)

Detailed Description

Base class for a disassembler.

The interface is simple:

  1. construct the class with whatever parameters the concrete subclass requires
  2. call diassemble for each assembly found and evaluate the result

some subclasses may be able to handle several assemblies, others may only disassemble one, that depends on the concrete disassembler you use

Constructor & Destructor Documentation

disassembler_c::disassembler_c ( void   )  [inline]

virtual disassembler_c::~disassembler_c ( void   )  [inline, virtual]

disassembler_c::disassembler_c ( const disassembler_c  )  [private]

Member Function Documentation

virtual separation_c* disassembler_c::disassemble ( const assembly_c  )  [inline, virtual]

Try to disassemble an assembly.

Because we can only have or don't have a disassembly sequence we don't need the same complicated callback interface. The function returns either the disassembly sequence or a null pointer. you need to take care of freeing the disassembly sequence after doing with it whatever you want

Reimplemented in disassembler_a_c.

Referenced by solveThread_c::assembly().

void disassembler_c::operator= ( const disassembler_c  )  [private]

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

Generated on Sun Oct 10 10:02:53 2010 for BurrTools by  doxygen 1.5.8