1 #ifndef OSMIUM_OSM_ENTITY_BITS_HPP 2 #define OSMIUM_OSM_ENTITY_BITS_HPP 37 #include <type_traits> 46 namespace osm_entity_bits {
63 enum type :
unsigned char {
79 return static_cast<type>(
static_cast<int>(lhs) | static_cast<int> (rhs));
88 return static_cast<type>(
static_cast<int>(lhs) & static_cast<int> (rhs));
92 return static_cast<type>(~static_cast<
int>(value));
119 #endif // OSMIUM_OSM_ENTITY_BITS_HPP type
Definition: entity_bits.hpp:63
item_type
Definition: item_type.hpp:43
Definition: entity_bits.hpp:70
Definition: entity_bits.hpp:73
object or changeset
Definition: entity_bits.hpp:74
type from_item_type(osmium::item_type item_type) noexcept
Definition: entity_bits.hpp:106
Definition: entity_bits.hpp:67
node, way, or relation object
Definition: entity_bits.hpp:69
Namespace for everything in the Osmium library.
Definition: assembler.hpp:66
type operator&=(type &lhs, const type rhs) noexcept
Definition: entity_bits.hpp:95
type operator&(const type lhs, const type rhs) noexcept
Definition: entity_bits.hpp:87
type operator|(const type lhs, const type rhs) noexcept
Definition: entity_bits.hpp:78
Definition: entity_bits.hpp:66
node, way, relation, or area object
Definition: entity_bits.hpp:71
Definition: entity_bits.hpp:65
type & operator|=(type &lhs, const type rhs) noexcept
Definition: entity_bits.hpp:82
Definition: entity_bits.hpp:68
type operator~(const type value) noexcept
Definition: entity_bits.hpp:91