LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::DEX::MapList Class Reference

Class which represents the map_list structure that follows the main DEX header. More...

#include <MapList.hpp>

Inheritance diagram for LIEF::DEX::MapList:
Collaboration diagram for LIEF::DEX::MapList:

Public Types

using items_t = std::map<MapItem::TYPES, MapItem>
 
using it_items_t = ref_iterator<std::vector<MapItem*>>
 
using it_const_items_t = const_ref_iterator<std::vector<MapItem*>>
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Public Member Functions

 MapList ()
 
 MapList (const MapList &)
 
MapListoperator= (const MapList &)
 
it_items_t items ()
 Iterator over LIEF::DEX::MapItem.
 
it_const_items_t items () const
 
bool has (MapItem::TYPES type) const
 Check if the given type exists.
 
const MapItemget (MapItem::TYPES type) const
 Return the LIEF::DEX::MapItem associated with the given type.
 
MapItemget (MapItem::TYPES type)
 Return the LIEF::DEX::MapItem associated with the given type.
 
const MapItemoperator[] (MapItem::TYPES type) const
 Return the LIEF::DEX::MapItem associated with the given type.
 
MapItemoperator[] (MapItem::TYPES type)
 Return the LIEF::DEX::MapItem associated with the given type.
 
void accept (Visitor &visitor) const override
 
 ~MapList () override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Detailed Description

Class which represents the map_list structure that follows the main DEX header.

This MapList aims at referencing the location of other DEX structures as described in https://source.android.com/devices/tech/dalvik/dex-format#map-item

Member Typedef Documentation

◆ it_const_items_t

◆ it_items_t

◆ items_t

Constructor & Destructor Documentation

◆ MapList() [1/2]

LIEF::DEX::MapList::MapList ( )

◆ MapList() [2/2]

LIEF::DEX::MapList::MapList ( const MapList & )

◆ ~MapList()

LIEF::DEX::MapList::~MapList ( )
override

Member Function Documentation

◆ accept()

void LIEF::DEX::MapList::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ get() [1/2]

MapItem & LIEF::DEX::MapList::get ( MapItem::TYPES type)

Return the LIEF::DEX::MapItem associated with the given type.

◆ get() [2/2]

const MapItem & LIEF::DEX::MapList::get ( MapItem::TYPES type) const

Return the LIEF::DEX::MapItem associated with the given type.

◆ has()

bool LIEF::DEX::MapList::has ( MapItem::TYPES type) const

Check if the given type exists.

◆ items() [1/2]

it_items_t LIEF::DEX::MapList::items ( )

Iterator over LIEF::DEX::MapItem.

◆ items() [2/2]

it_const_items_t LIEF::DEX::MapList::items ( ) const

◆ operator=()

MapList & LIEF::DEX::MapList::operator= ( const MapList & )

◆ operator[]() [1/2]

MapItem & LIEF::DEX::MapList::operator[] ( MapItem::TYPES type)

Return the LIEF::DEX::MapItem associated with the given type.

◆ operator[]() [2/2]

const MapItem & LIEF::DEX::MapList::operator[] ( MapItem::TYPES type) const

Return the LIEF::DEX::MapItem associated with the given type.


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