Libosmium  2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
Enumerations | Functions
osmium::osm_entity_bits Namespace Reference

Bit field for OSM entity types. More...

Enumerations

enum  type : unsigned char {
  nothing = 0x00 , node = 0x01 , way = 0x02 , relation = 0x04 ,
  nwr = 0x07 , area = 0x08 , nwra = 0x0f , object = 0x0f ,
  changeset = 0x10 , all = 0x1f
}
 

Functions

constexpr type operator| (const type lhs, const type rhs) noexcept
 
constexpr type operator& (const type lhs, const type rhs) noexcept
 
constexpr type operator~ (const type value) noexcept
 
typeoperator|= (type &lhs, const type rhs) noexcept
 
type operator&= (type &lhs, const type rhs) noexcept
 
type from_item_type (osmium::item_type item_type) noexcept
 

Detailed Description

Bit field for OSM entity types.

Enumeration Type Documentation

◆ type

enum osmium::osm_entity_bits::type : unsigned char

Describes zero or more OSM entities.

Usage:

assert(! (entities & osmium::osm_entity_bits::changeset));
type
Definition: entity_bits.hpp:63
@ object
node, way, relation, or area object
Definition: entity_bits.hpp:74
@ node
Definition: entity_bits.hpp:68
@ changeset
Definition: entity_bits.hpp:75
@ relation
Definition: entity_bits.hpp:70
@ way
Definition: entity_bits.hpp:69
Enumerator
nothing 
node 
way 
relation 
nwr 

node, way, or relation object

area 
nwra 

node, way, relation, or area object

object 

node, way, relation, or area object

changeset 
all 

object or changeset

Function Documentation

◆ from_item_type()

type osmium::osm_entity_bits::from_item_type ( osmium::item_type  item_type)
inlinenoexcept

Get entity_bits from item_type.

Precondition
item_type must be undefined, node, way, relation, area, or changeset.

◆ operator&()

constexpr type osmium::osm_entity_bits::operator& ( const type  lhs,
const type  rhs 
)
inlineconstexprnoexcept

◆ operator&=()

type osmium::osm_entity_bits::operator&= ( type lhs,
const type  rhs 
)
inlinenoexcept

◆ operator|()

constexpr type osmium::osm_entity_bits::operator| ( const type  lhs,
const type  rhs 
)
inlineconstexprnoexcept

◆ operator|=()

type & osmium::osm_entity_bits::operator|= ( type lhs,
const type  rhs 
)
inlinenoexcept

◆ operator~()

constexpr type osmium::osm_entity_bits::operator~ ( const type  value)
inlineconstexprnoexcept