1 #ifndef OSMIUM_OSM_ENTITY_HPP 2 #define OSMIUM_OSM_ENTITY_HPP 44 template <
typename TSubitem,
typename TIter>
45 inline TSubitem& subitem_of_type(TIter it, TIter
end) {
46 for (; it !=
end; ++it) {
47 if (it->type() == TSubitem::itemtype) {
48 return reinterpret_cast<TSubitem&
>(*it);
54 static TSubitem subitem;
80 #endif // OSMIUM_OSM_ENTITY_HPP type
Definition: entity_bits.hpp:60
bool type_is_in(osmium::osm_entity_bits::type entity_bits) const
Definition: entity.hpp:72
item_type
Definition: item_type.hpp:43
OSMEntity is the abstract base class for the OSMObject and Changeset classes.
Definition: entity.hpp:64
OSMEntity(osmium::memory::item_size_type size, osmium::item_type type)
Definition: entity.hpp:68
type from_item_type(osmium::item_type item_type) noexcept
Definition: entity_bits.hpp:97
Namespace for everything in the Osmium library.
Definition: assembler.hpp:59
osmium::io::InputIterator< osmium::io::Reader > end(osmium::io::Reader &)
Definition: reader_iterator.hpp:45
uint32_t item_size_type
Definition: item.hpp:50