1#ifndef OSMIUM_OSM_ENTITY_BITS_HPP
2#define OSMIUM_OSM_ENTITY_BITS_HPP
46 namespace osm_entity_bits {
65 enum type :
unsigned char {
92 return static_cast<type>(
static_cast<unsigned char>(lhs) |
static_cast<unsigned char>(rhs));
96 return static_cast<type>(
static_cast<unsigned char>(lhs) &
static_cast<unsigned char>(rhs));
100 return all &
static_cast<type>(~static_cast<unsigned char>(value));
120 const auto ut =
static_cast<std::underlying_type_t<osmium::item_type>
>(
item_type);
type & operator|=(type &lhs, const type rhs) noexcept
Definition entity_bits.hpp:103
type operator&=(type &lhs, const type rhs) noexcept
Definition entity_bits.hpp:108
type
Definition entity_bits.hpp:65
@ nw
node or way object
Definition entity_bits.hpp:72
@ ra
relation or area object
Definition entity_bits.hpp:81
@ node
Definition entity_bits.hpp:70
@ changeset
Definition entity_bits.hpp:86
@ wa
way or area object
Definition entity_bits.hpp:79
@ wra
way, relation or area object
Definition entity_bits.hpp:83
@ nra
node, relation or area object
Definition entity_bits.hpp:82
@ all
object or changeset
Definition entity_bits.hpp:87
@ nwa
node, way or area object
Definition entity_bits.hpp:80
@ nwr
node, way, or relation object
Definition entity_bits.hpp:76
@ nwra
node, way, relation, or area object
Definition entity_bits.hpp:84
@ relation
Definition entity_bits.hpp:73
@ wr
way or relation object
Definition entity_bits.hpp:75
@ area
Definition entity_bits.hpp:77
@ nothing
Definition entity_bits.hpp:69
@ way
Definition entity_bits.hpp:71
@ na
node or area object
Definition entity_bits.hpp:78
@ nr
node or relation object
Definition entity_bits.hpp:74
constexpr type operator|(const type lhs, const type rhs) noexcept
Definition entity_bits.hpp:91
constexpr type operator~(const type value) noexcept
Definition entity_bits.hpp:99
constexpr type operator&(const type lhs, const type rhs) noexcept
Definition entity_bits.hpp:95
type from_item_type(osmium::item_type item_type) noexcept
Definition entity_bits.hpp:119
Namespace for everything in the Osmium library.
Definition assembler.hpp:53
item_type
Definition item_type.hpp:45