ROSE 0.11.145.277
Public Types | Public Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::MemoryTable::Entries Class Referenceabstract

Description

Represents the entries in the table.

Each entry has a unique starting address in memory.

Definition at line 30 of file MemoryTable.h.

#include <Rose/BinaryAnalysis/Partitioner2/MemoryTable.h>

Inheritance diagram for Rose::BinaryAnalysis::Partitioner2::MemoryTable::Entries:
Inheritance graph
[legend]

Public Types

using Ptr = std::shared_ptr< Entries >
 Shared-ownership pointer.
 

Public Member Functions

bool empty () const
 True if there are no entries.
 
virtual size_t size () const =0
 Number of entries stored.
 
virtual bool maybeAppend (const MemoryTable *, Address entryAddr, const std::vector< uint8_t > &bytes)=0
 Parse a table entry and append to this list if the entry is valid.
 
virtual bool maybePrepend (const MemoryTable *, Address entryAddr, const std::vector< uint8_t > &bytes)=0
 Parse a table entry and prepend to this list if the entry is valid.
 

Member Typedef Documentation

◆ Ptr

Shared-ownership pointer.

Definition at line 33 of file MemoryTable.h.

Member Function Documentation

◆ size()

virtual size_t Rose::BinaryAnalysis::Partitioner2::MemoryTable::Entries::size ( ) const
pure virtual

Number of entries stored.

Implemented in Rose::BinaryAnalysis::Partitioner2::JumpTable::Entries.

◆ maybeAppend()

virtual bool Rose::BinaryAnalysis::Partitioner2::MemoryTable::Entries::maybeAppend ( const MemoryTable ,
Address  entryAddr,
const std::vector< uint8_t > &  bytes 
)
pure virtual

Parse a table entry and append to this list if the entry is valid.

Given the table entry address and bytes obtained from memory, parse the entry and append it to this object. Returns true if the entry is valid, false if invalid.

Implemented in Rose::BinaryAnalysis::Partitioner2::JumpTable::Entries.

◆ maybePrepend()

virtual bool Rose::BinaryAnalysis::Partitioner2::MemoryTable::Entries::maybePrepend ( const MemoryTable ,
Address  entryAddr,
const std::vector< uint8_t > &  bytes 
)
pure virtual

Parse a table entry and prepend to this list if the entry is valid.

Given the table entry address and bytes obtained from memory, parse the entry and prepend it to this object. Returns true if the entry is valid, false if invalid.

Implemented in Rose::BinaryAnalysis::Partitioner2::JumpTable::Entries.


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