ROSE 0.11.145.147
Disassembler/Null.h
1#ifndef ROSE_BinaryAnalysis_Disassembler_Null_H
2#define ROSE_BinaryAnalysis_Disassembler_Null_H
3#include <featureTests.h>
4#ifdef ROSE_ENABLE_BINARY_ANALYSIS
5#include <Rose/BinaryAnalysis/Disassembler/Base.h>
6
7#include <Rose/BinaryAnalysis/Architecture/BasicTypes.h>
8
9#include <boost/serialization/access.hpp>
10#include <boost/serialization/base_object.hpp>
11
12namespace Rose {
13namespace BinaryAnalysis {
14namespace Disassembler {
15
20class Null: public Base {
21public:
23 using Ptr = NullPtr;
24
25#ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
26private:
27 friend class boost::serialization::access;
28
29 template<class S>
30 void serialize(S &s, const unsigned /*version*/) {
31 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
32 }
33#endif
34
35protected:
37
38public:
39 virtual ~Null();
40
43
44 virtual Base::Ptr clone() const override;
45 virtual SgAsmInstruction* disassembleOne(const MemoryMap::Ptr&, rose_addr_t va, AddressSet *successors = NULL) override;
47};
48
49} // namespace
50} // namespace
51} // namespace
52
53#endif
54#endif
Virtual base class for instruction disassemblers.
virtual SgAsmInstruction * makeUnknownInstruction(const Exception &) override
Makes an unknown instruction from an exception.
virtual Base::Ptr clone() const override
Creates a new copy of a disassembler.
static Ptr instance(const Architecture::BaseConstPtr &)
Allocating constructor.
virtual SgAsmInstruction * disassembleOne(const MemoryMap::Ptr &, rose_addr_t va, AddressSet *successors=NULL) override
This is the lowest level disassembly function and is implemented in the architecture-specific subclas...
Reference-counting intrusive smart pointer.
Base class for machine instructions.
std::shared_ptr< const Base > BaseConstPtr
Reference counted pointer for Architecture::Base.
The ROSE library.