GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
|
#include <TagValue.h>
Public Member Functions | |
TagValue () | |
TagValue (uint64_t taggedNumberValue, StringValue str=StringValue()) | |
TagValue (StringValue str) | |
operator double () const noexcept | |
operator int64_t () const noexcept | |
operator int () const noexcept | |
operator bool () const noexcept | |
bool | operator! () const noexcept |
bool | operator== (const TagValue &other) const noexcept |
bool | operator!= (const TagValue &other) const noexcept |
bool | operator== (const std::string_view &sv) const noexcept |
bool | operator== (double val) const noexcept |
bool | operator== (int64_t val) const noexcept |
bool | operator!= (const std::string_view &val) const noexcept |
bool | operator!= (double val) const noexcept |
bool | operator!= (int64_t val) const noexcept |
bool | operator< (const TagValue &other) const noexcept |
bool | operator< (double val) const noexcept |
bool | operator> (double val) const noexcept |
bool | operator<= (double val) const noexcept |
bool | operator>= (double val) const noexcept |
bool | operator< (int64_t val) const noexcept |
bool | operator> (int64_t val) const noexcept |
bool | operator<= (int64_t val) const noexcept |
bool | operator>= (int64_t val) const noexcept |
bool | operator< (int val) const noexcept |
bool | operator> (int val) const noexcept |
bool | operator<= (int val) const noexcept |
bool | operator>= (int val) const noexcept |
Friends | |
template<typename Stream > | |
Stream & | operator<< (Stream &out, const TagValue &v) |
The value of a Tag.
Converts implicitly to std::string
, double
, int
or bool
.
double
: NaN
if the string value does not start with a valid numberint
: 0
if the string value does not start with a valid numberbool
: true
unless empty string, "no"
, or a numerical value of 0
Warning: A TagValue object is a lightweight wrapper around a pointer to a Feature's tag data, contained in a FeatureStore. It becomes invalid once that FeatureStore is closed. To use its value beyond the lifetime of the FeatureStore, convert it to a std::string
(which allocates a copy of the tag data), or one of the supported scalar types.
|
inline |
|
inlineexplicit |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |