Libosmium  2.11.0
Fast and flexible C++ library for working with OpenStreetMap data
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
osmium::index::IdSet< T > Class Template Referenceabstract

#include <id_set.hpp>

Inheritance diagram for osmium::index::IdSet< T >:
Inheritance graph
[legend]

Public Member Functions

virtual ~IdSet ()
 
virtual void set (T id)=0
 
virtual bool get (T id) const noexcept=0
 
virtual bool empty () const =0
 
virtual void clear ()=0
 

Detailed Description

template<typename T>
class osmium::index::IdSet< T >

Virtual parent class for IdSets. Use one of the implementations provided.

Constructor & Destructor Documentation

template<typename T >
virtual osmium::index::IdSet< T >::~IdSet ( )
inlinevirtual

Member Function Documentation

template<typename T >
virtual void osmium::index::IdSet< T >::clear ( )
pure virtual
template<typename T >
virtual bool osmium::index::IdSet< T >::empty ( ) const
pure virtual

Is the set empty?

Implemented in osmium::index::IdSetSmall< T >, and osmium::index::IdSetDense< T >.

template<typename T >
virtual bool osmium::index::IdSet< T >::get ( id) const
pure virtualnoexcept

Is the Id in the set?

Implemented in osmium::index::IdSetSmall< T >, and osmium::index::IdSetDense< T >.

template<typename T >
virtual void osmium::index::IdSet< T >::set ( id)
pure virtual

Add the given Id to the set.

Implemented in osmium::index::IdSetSmall< T >, and osmium::index::IdSetDense< T >.


The documentation for this class was generated from the following file: