![]() |
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 |
| int | charCount () const noexcept |
| Counts the number of UTF-8 characters (not bytes) that this TagValue represents. | |
| bool | isStoredNumeric () const noexcept |
true if the value's native storage format is numeric. | |
| StringValue | storedString () const noexcept |
| The tag value as a string, if its native storage format is string. | |
| clarisma::Decimal | storedNumber () const noexcept |
| The tag value as a Decimal, if its native storage format is numeric. | |
| template<typename Stream > | |
| void | format (Stream &out) const |
| Writes the tag value to the given Buffer, XMl/HTML-encoded. | |
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 0Warning: 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 |
|
noexcept |
Counts the number of UTF-8 characters (not bytes) that this TagValue represents.
Numeric values are assumed to be formatted in their canonical representation.
|
inline |
Writes the tag value to the given Buffer, XMl/HTML-encoded.
| out | a Buffer |
|
inlinenoexcept |
true if the value's native storage format is numeric.
|
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 |
|
inlinenoexcept |
The tag value as a Decimal, if its native storage format is numeric.
If the value is stored as a string, returns its global-string code (or 0 for a local string).
|
inlinenoexcept |
The tag value as a string, if its native storage format is string.
If the value is stored as a number, returns an empty string.