GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
Loading...
Searching...
No Matches
geodesk::FeaturePtr Class Reference

#include <FeaturePtr.h>

Public Member Functions

 FeaturePtr ()
 
 FeaturePtr (const uint8_t *p)
 
 FeaturePtr (const FeaturePtr &other)
 
 operator DataPtr () const noexcept
 
uint64_t id () const noexcept
 
uint64_t typedId () const noexcept
 
FeatureHeader header ()
 
Box bounds () const noexcept
 
bool isNull () const noexcept
 
int flags () const noexcept
 
bool isArea () const noexcept
 
bool isNode () const noexcept
 
bool isWay () const noexcept
 
bool isRelation () const noexcept
 
bool isRelationMember () const noexcept
 
bool isType (FeatureTypes types) const noexcept
 
bool intersects (const Box &bounds) const noexcept
 
TagTablePtr tags () const noexcept
 
DataPtr ptr () const noexcept
 
DataPtr bodyptr () const noexcept
 
DataPtr relationTableFast () const
 Obtains a pointer to the feature's relation table.
 
int32_t relationTableHandleFast (const uint8_t *base) const
 
int64_t idBits () const
 A 64-bit value that uniquely identifies the feature based on its type and ID.
 
int64_t hash () const
 
FeatureType type () const
 
int typeCode () const
 
int32_t minX () const
 
int32_t minY () const
 
int32_t maxX () const
 
int32_t maxY () const
 
const char * typeName () const
 
std::string toString () const
 
bool operator< (const FeaturePtr &other) const noexcept
 

Protected Attributes

DataPtr p_
 

Constructor & Destructor Documentation

◆ FeaturePtr() [1/3]

geodesk::FeaturePtr::FeaturePtr ( )
inline

◆ FeaturePtr() [2/3]

geodesk::FeaturePtr::FeaturePtr ( const uint8_t * p)
inline

◆ FeaturePtr() [3/3]

geodesk::FeaturePtr::FeaturePtr ( const FeaturePtr & other)
inline

Member Function Documentation

◆ bodyptr()

DataPtr geodesk::FeaturePtr::bodyptr ( ) const
inlinenoexcept

◆ bounds()

Box geodesk::FeaturePtr::bounds ( ) const
inlinenoexcept

◆ flags()

int geodesk::FeaturePtr::flags ( ) const
inlinenoexcept

◆ hash()

int64_t geodesk::FeaturePtr::hash ( ) const
inline

◆ header()

FeatureHeader geodesk::FeaturePtr::header ( )
inline

◆ id()

uint64_t geodesk::FeaturePtr::id ( ) const
inlinenoexcept

◆ idBits()

int64_t geodesk::FeaturePtr::idBits ( ) const
inline

A 64-bit value that uniquely identifies the feature based on its type and ID.

TODO: Changes in 2.0

◆ intersects()

bool geodesk::FeaturePtr::intersects ( const Box & bounds) const
inlinenoexcept

◆ isArea()

bool geodesk::FeaturePtr::isArea ( ) const
inlinenoexcept

◆ isNode()

bool geodesk::FeaturePtr::isNode ( ) const
inlinenoexcept

◆ isNull()

bool geodesk::FeaturePtr::isNull ( ) const
inlinenoexcept

◆ isRelation()

bool geodesk::FeaturePtr::isRelation ( ) const
inlinenoexcept

◆ isRelationMember()

bool geodesk::FeaturePtr::isRelationMember ( ) const
inlinenoexcept

◆ isType()

bool geodesk::FeaturePtr::isType ( FeatureTypes types) const
inlinenoexcept

◆ isWay()

bool geodesk::FeaturePtr::isWay ( ) const
inlinenoexcept

◆ maxX()

int32_t geodesk::FeaturePtr::maxX ( ) const
inline

◆ maxY()

int32_t geodesk::FeaturePtr::maxY ( ) const
inline

◆ minX()

int32_t geodesk::FeaturePtr::minX ( ) const
inline

◆ minY()

int32_t geodesk::FeaturePtr::minY ( ) const
inline

◆ operator DataPtr()

geodesk::FeaturePtr::operator DataPtr ( ) const
inlinenoexcept

◆ operator<()

bool geodesk::FeaturePtr::operator< ( const FeaturePtr & other) const
inlinenoexcept

◆ ptr()

DataPtr geodesk::FeaturePtr::ptr ( ) const
inlinenoexcept

◆ relationTableFast()

DataPtr geodesk::FeaturePtr::relationTableFast ( ) const
inline

Obtains a pointer to the feature's relation table.

The feature must belong to a relation, otherwise the result is undefined.

◆ relationTableHandleFast()

int32_t geodesk::FeaturePtr::relationTableHandleFast ( const uint8_t * base) const
inline

◆ tags()

TagTablePtr geodesk::FeaturePtr::tags ( ) const
inlinenoexcept

◆ toString()

std::string geodesk::FeaturePtr::toString ( ) const

◆ type()

FeatureType geodesk::FeaturePtr::type ( ) const
inline

◆ typeCode()

int geodesk::FeaturePtr::typeCode ( ) const
inline

◆ typedId()

uint64_t geodesk::FeaturePtr::typedId ( ) const
inlinenoexcept

◆ typeName()

const char * geodesk::FeaturePtr::typeName ( ) const

Member Data Documentation

◆ p_

DataPtr geodesk::FeaturePtr::p_
protected

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