1 #ifndef OSMIUM_OSM_ENTITY_HPP
2 #define OSMIUM_OSM_ENTITY_HPP
43 template <
class TSubitem,
class TIter>
44 inline TSubitem& subitem_of_type(TIter it, TIter
end) {
45 for (; it !=
end; ++it) {
46 if (it->type() == TSubitem::itemtype) {
47 return reinterpret_cast<TSubitem&
>(*it);
53 static TSubitem subitem;
79 #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:71
item_type
Definition: item_type.hpp:43
OSMEntity is the abstract base class for the OSMObject and Changeset classes.
Definition: entity.hpp:63
OSMEntity(osmium::memory::item_size_type size, osmium::item_type type)
Definition: entity.hpp:67
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:55
osmium::io::InputIterator< osmium::io::Reader > end(osmium::io::Reader &)
Definition: reader_iterator.hpp:45
Item(item_size_type size=0, item_type type=item_type()) noexcept
Definition: item.hpp:120
uint32_t item_size_type
Definition: item.hpp:51
item_type type() const noexcept
Definition: item.hpp:156