LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Class which represents the map_list
structure that follows the main DEX header.
More...
#include <MapList.hpp>
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 &) | |
MapList & | operator= (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 MapItem & | get (MapItem::TYPES type) const |
Return the LIEF::DEX::MapItem associated with the given type. | |
MapItem & | get (MapItem::TYPES type) |
Return the LIEF::DEX::MapItem associated with the given type. | |
const MapItem & | operator[] (MapItem::TYPES type) const |
Return the LIEF::DEX::MapItem associated with the given type. | |
MapItem & | operator[] (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) | |
Object & | operator= (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 () |
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
using LIEF::DEX::MapList::it_const_items_t = const_ref_iterator<std::vector<MapItem*>> |
using LIEF::DEX::MapList::it_items_t = ref_iterator<std::vector<MapItem*>> |
using LIEF::DEX::MapList::items_t = std::map<MapItem::TYPES, MapItem> |
LIEF::DEX::MapList::MapList | ( | ) |
LIEF::DEX::MapList::MapList | ( | const MapList & | ) |
|
override |
|
overridevirtual |
Implements LIEF::Object.
MapItem & LIEF::DEX::MapList::get | ( | MapItem::TYPES | type | ) |
Return the LIEF::DEX::MapItem associated with the given type.
const MapItem & LIEF::DEX::MapList::get | ( | MapItem::TYPES | type | ) | const |
Return the LIEF::DEX::MapItem associated with the given type.
bool LIEF::DEX::MapList::has | ( | MapItem::TYPES | type | ) | const |
Check if the given type exists.
it_items_t LIEF::DEX::MapList::items | ( | ) |
Iterator over LIEF::DEX::MapItem.
it_const_items_t LIEF::DEX::MapList::items | ( | ) | const |
MapItem & LIEF::DEX::MapList::operator[] | ( | MapItem::TYPES | type | ) |
Return the LIEF::DEX::MapItem associated with the given type.
const MapItem & LIEF::DEX::MapList::operator[] | ( | MapItem::TYPES | type | ) | const |
Return the LIEF::DEX::MapItem associated with the given type.