Go to the documentation of this file.
16#ifndef LIEF_MAP_LIST_H
17#define LIEF_MAP_LIST_H
41 using items_t = std::map<MapItem::TYPES, MapItem>;
42 using it_items_t = ref_iterator<std::vector<MapItem*>>;
43 using it_const_items_t = const_ref_iterator<std::vector<MapItem*>>;
54 bool has(MapItem::TYPES type)
const;
57 const MapItem&
get(MapItem::TYPES type)
const;
60 MapItem&
get(MapItem::TYPES type);
63 const MapItem&
operator[](MapItem::TYPES type)
const;
70 void accept(Visitor& visitor)
const override;
Class which represents a DEX Class (i.e. a Java/Kotlin class)
Definition DEX/Class.hpp:36
Class which represents the map_list structure that follows the main DEX header.
Definition MapList.hpp:37
const MapItem & operator[](MapItem::TYPES type) const
Return the LIEF::DEX::MapItem associated with the given type.
const MapItem & get(MapItem::TYPES type) const
Return the LIEF::DEX::MapItem associated with the given type.
it_items_t items()
Iterator over LIEF::DEX::MapItem.
MapItem & get(MapItem::TYPES type)
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.
friend std::ostream & operator<<(std::ostream &os, const MapList &mtd)
MapList & operator=(const MapList &)
bool has(MapItem::TYPES type) const
Check if the given type exists.
void accept(Visitor &visitor) const override
it_const_items_t items() const
Class which parses a DEX file to produce a DEX::File object.
Definition DEX/Parser.hpp:38
Definition DEX/Class.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41