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:63
uint32_t item_size_type
Definition: item.hpp:50
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:106
Namespace for everything in the Osmium library.
Definition: assembler.hpp:66
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:119
item_type type() const noexcept
Definition: item.hpp:155