GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
addrmap_mutable Struct Reference

#include "addrmap.h"

Inheritance diagram for addrmap_mutable:
addrmap

Public Member Functions

 addrmap_mutable ()
 
 ~addrmap_mutable ()
 
 DISABLE_COPY_AND_ASSIGN (addrmap_mutable)
 
void set_empty (CORE_ADDR start, CORE_ADDR end_inclusive, void *obj) override
 
void relocate (CORE_ADDR offset) override
 
- Public Member Functions inherited from addrmap
virtual ~addrmap ()=default
 
const void * find (CORE_ADDR addr) const
 
void * find (CORE_ADDR addr)
 
int foreach (addrmap_foreach_const_fn fn) const
 
int foreach (addrmap_foreach_fn fn)
 

Private Member Functions

void * do_find (CORE_ADDR addr) const override
 
int do_foreach (addrmap_foreach_fn fn) const override
 
splay_tree_key allocate_key (CORE_ADDR addr)
 
void force_transition (CORE_ADDR addr)
 
splay_tree_node splay_tree_lookup (CORE_ADDR addr) const
 
splay_tree_node splay_tree_predecessor (CORE_ADDR addr) const
 
splay_tree_node splay_tree_successor (CORE_ADDR addr)
 
void splay_tree_remove (CORE_ADDR addr)
 
void splay_tree_insert (CORE_ADDR key, void *value)
 

Private Attributes

splay_tree tree
 

Detailed Description

Definition at line 158 of file addrmap.h.

Constructor & Destructor Documentation

◆ addrmap_mutable()

addrmap_mutable::addrmap_mutable ( )

Definition at line 349 of file addrmap.c.

◆ ~addrmap_mutable()

addrmap_mutable::~addrmap_mutable ( )

Definition at line 355 of file addrmap.c.

References tree.

Member Function Documentation

◆ allocate_key()

splay_tree_key addrmap_mutable::allocate_key ( CORE_ADDR addr)
private

Definition at line 106 of file addrmap.c.

Referenced by splay_tree_insert().

◆ DISABLE_COPY_AND_ASSIGN()

addrmap_mutable::DISABLE_COPY_AND_ASSIGN ( addrmap_mutable )

◆ do_find()

void * addrmap_mutable::do_find ( CORE_ADDR addr) const
overrideprivatevirtual

Implements addrmap.

Definition at line 243 of file addrmap.c.

References addrmap_node_key(), addrmap_node_value(), splay_tree_lookup(), and splay_tree_predecessor().

◆ do_foreach()

int addrmap_mutable::do_foreach ( addrmap_foreach_fn fn) const
overrideprivatevirtual

Implements addrmap.

Definition at line 320 of file addrmap.c.

References addrmap_mutable_foreach_worker(), and tree.

◆ force_transition()

void addrmap_mutable::force_transition ( CORE_ADDR addr)
private

Definition at line 178 of file addrmap.c.

References addrmap_node_value(), splay_tree_insert(), splay_tree_lookup(), and splay_tree_predecessor().

Referenced by set_empty().

◆ relocate()

void addrmap_mutable::relocate ( CORE_ADDR offset)
overridevirtual

Implements addrmap.

Definition at line 300 of file addrmap.c.

◆ set_empty()

void addrmap_mutable::set_empty ( CORE_ADDR start,
CORE_ADDR end_inclusive,
void * obj )
overridevirtual

◆ splay_tree_insert()

void addrmap_mutable::splay_tree_insert ( CORE_ADDR key,
void * value )
private

Definition at line 166 of file addrmap.c.

References allocate_key(), splay_tree_insert(), and tree.

Referenced by force_transition(), and splay_tree_insert().

◆ splay_tree_lookup()

splay_tree_node addrmap_mutable::splay_tree_lookup ( CORE_ADDR addr) const
private

Definition at line 117 of file addrmap.c.

References tree.

Referenced by do_find(), force_transition(), and set_empty().

◆ splay_tree_predecessor()

splay_tree_node addrmap_mutable::splay_tree_predecessor ( CORE_ADDR addr) const
private

Definition at line 124 of file addrmap.c.

References tree.

Referenced by do_find(), force_transition(), and set_empty().

◆ splay_tree_remove()

void addrmap_mutable::splay_tree_remove ( CORE_ADDR addr)
private

Definition at line 138 of file addrmap.c.

References splay_tree_remove(), and tree.

Referenced by set_empty(), and splay_tree_remove().

◆ splay_tree_successor()

splay_tree_node addrmap_mutable::splay_tree_successor ( CORE_ADDR addr)
private

Definition at line 131 of file addrmap.c.

References tree.

Referenced by set_empty().

Member Data Documentation

◆ tree

splay_tree addrmap_mutable::tree
private

The documentation for this struct was generated from the following files: