#include <datapiece.h>
|
enum | Type {
TYPE_INT32 = 1,
TYPE_INT64 = 2,
TYPE_UINT32 = 3,
TYPE_UINT64 = 4,
TYPE_DOUBLE = 5,
TYPE_FLOAT = 6,
TYPE_BOOL = 7,
TYPE_ENUM = 8,
TYPE_STRING = 9,
TYPE_BYTES = 10,
TYPE_NULL = 11,
TYPE_INT32 = 1,
TYPE_INT64 = 2,
TYPE_UINT32 = 3,
TYPE_UINT64 = 4,
TYPE_DOUBLE = 5,
TYPE_FLOAT = 6,
TYPE_BOOL = 7,
TYPE_ENUM = 8,
TYPE_STRING = 9,
TYPE_BYTES = 10,
TYPE_NULL = 11
} |
|
enum | Type {
TYPE_INT32 = 1,
TYPE_INT64 = 2,
TYPE_UINT32 = 3,
TYPE_UINT64 = 4,
TYPE_DOUBLE = 5,
TYPE_FLOAT = 6,
TYPE_BOOL = 7,
TYPE_ENUM = 8,
TYPE_STRING = 9,
TYPE_BYTES = 10,
TYPE_NULL = 11,
TYPE_INT32 = 1,
TYPE_INT64 = 2,
TYPE_UINT32 = 3,
TYPE_UINT64 = 4,
TYPE_DOUBLE = 5,
TYPE_FLOAT = 6,
TYPE_BOOL = 7,
TYPE_ENUM = 8,
TYPE_STRING = 9,
TYPE_BYTES = 10,
TYPE_NULL = 11
} |
|
|
| DataPiece () |
|
| DataPiece () |
|
| DataPiece (Type type, int32 val) |
|
| DataPiece (Type type, int32_t val) |
|
bool | DecodeBase64 (StringPiece src, std::string *dest) const |
|
bool | DecodeBase64 (StringPiece src, std::string *dest) const |
|
template<typename To > |
util::StatusOr< To > | GenericConvert () const |
|
template<typename To > |
util::StatusOr< To > | GenericConvert () const |
|
void | InternalCopy (const DataPiece &other) |
|
void | InternalCopy (const DataPiece &other) |
|
template<typename To > |
util::StatusOr< To > | StringToNumber (bool(*func)(StringPiece, To *)) const |
|
template<typename To > |
util::StatusOr< To > | StringToNumber (bool(*func)(StringPiece, To *)) const |
|
util::StatusOr< int > | ToEnum (const google::protobuf::Enum *enum_type, bool use_lower_camel_for_enums, bool case_insensitive_enum_parsing, bool ignore_unknown_enum_values, bool *is_unknown_enum_value) const |
|
util::StatusOr< int > | ToEnum (const google::protobuf::Enum *enum_type, bool use_lower_camel_for_enums, bool case_insensitive_enum_parsing, bool ignore_unknown_enum_values, bool *is_unknown_enum_value) const |
|
◆ StringPiecePod
◆ Type [1/2]
◆ Type [2/2]
Enumerator |
---|
TYPE_INT32 | |
TYPE_INT64 | |
TYPE_UINT32 | |
TYPE_UINT64 | |
TYPE_DOUBLE | |
TYPE_FLOAT | |
TYPE_BOOL | |
TYPE_ENUM | |
TYPE_STRING | |
TYPE_BYTES | |
TYPE_NULL | |
TYPE_INT32 | |
TYPE_INT64 | |
TYPE_UINT32 | |
TYPE_UINT64 | |
TYPE_DOUBLE | |
TYPE_FLOAT | |
TYPE_BOOL | |
TYPE_ENUM | |
TYPE_STRING | |
TYPE_BYTES | |
TYPE_NULL | |
Definition at line 64 of file protobuf/src/google/protobuf/util/internal/datapiece.h.
◆ DataPiece() [1/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const int32 |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [2/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const int64 |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [3/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const uint32 |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [4/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const uint64 |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [5/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const double |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [6/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const float |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [7/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const bool |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [8/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
StringPiece |
value, |
|
|
bool |
use_strict_base64_decoding |
|
) |
| |
|
inline |
◆ DataPiece() [9/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
StringPiece |
value, |
|
|
bool |
dummy, |
|
|
bool |
use_strict_base64_decoding |
|
) |
| |
|
inline |
◆ DataPiece() [10/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const DataPiece & |
r | ) |
|
|
inline |
◆ ~DataPiece() [1/2]
virtual google::protobuf::util::converter::DataPiece::~DataPiece |
( |
| ) |
|
|
inlinevirtual |
◆ DataPiece() [11/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
| ) |
|
|
private |
◆ DataPiece() [12/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
Type |
type, |
|
|
int32 |
val |
|
) |
| |
|
inlineprivate |
◆ DataPiece() [13/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const int32_t |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [14/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const int64_t |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [15/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const uint32_t |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [16/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const uint64_t |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [17/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const double |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [18/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const float |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [19/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const bool |
value | ) |
|
|
inlineexplicit |
◆ DataPiece() [20/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
StringPiece |
value, |
|
|
bool |
use_strict_base64_decoding |
|
) |
| |
|
inline |
◆ DataPiece() [21/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
StringPiece |
value, |
|
|
bool |
, |
|
|
bool |
use_strict_base64_decoding |
|
) |
| |
|
inline |
◆ DataPiece() [22/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
const DataPiece & |
r | ) |
|
|
inline |
◆ ~DataPiece() [2/2]
virtual google::protobuf::util::converter::DataPiece::~DataPiece |
( |
| ) |
|
|
inlinevirtual |
◆ DataPiece() [23/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
| ) |
|
|
private |
◆ DataPiece() [24/24]
google::protobuf::util::converter::DataPiece::DataPiece |
( |
Type |
type, |
|
|
int32_t |
val |
|
) |
| |
|
inlineprivate |
◆ DecodeBase64() [1/2]
bool google::protobuf::util::converter::DataPiece::DecodeBase64 |
( |
StringPiece |
src, |
|
|
std::string * |
dest |
|
) |
| const |
|
private |
◆ DecodeBase64() [2/2]
bool google::protobuf::util::converter::DataPiece::DecodeBase64 |
( |
StringPiece |
src, |
|
|
std::string * |
dest |
|
) |
| const |
|
private |
◆ GenericConvert() [1/3]
template<typename To >
util::StatusOr< To > google::protobuf::util::converter::DataPiece::GenericConvert |
|
private |
◆ GenericConvert() [2/3]
template<typename To >
util::StatusOr<To> google::protobuf::util::converter::DataPiece::GenericConvert |
( |
| ) |
const |
|
private |
◆ GenericConvert() [3/3]
template<typename To >
StatusOr<To> google::protobuf::util::converter::DataPiece::GenericConvert |
( |
| ) |
const |
◆ InternalCopy() [1/2]
void google::protobuf::util::converter::DataPiece::InternalCopy |
( |
const DataPiece & |
other | ) |
|
|
private |
◆ InternalCopy() [2/2]
void google::protobuf::util::converter::DataPiece::InternalCopy |
( |
const DataPiece & |
other | ) |
|
|
private |
◆ NullData() [1/2]
static DataPiece google::protobuf::util::converter::DataPiece::NullData |
( |
| ) |
|
|
inlinestatic |
◆ NullData() [2/2]
static DataPiece google::protobuf::util::converter::DataPiece::NullData |
( |
| ) |
|
|
inlinestatic |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ str() [1/2]
StringPiece google::protobuf::util::converter::DataPiece::str |
( |
| ) |
const |
|
inline |
◆ str() [2/2]
StringPiece google::protobuf::util::converter::DataPiece::str |
( |
| ) |
const |
|
inline |
◆ StringToNumber() [1/3]
◆ StringToNumber() [2/3]
◆ StringToNumber() [3/3]
◆ ToBool() [1/2]
◆ ToBool() [2/2]
◆ ToBytes() [1/2]
util::StatusOr< std::string > google::protobuf::util::converter::DataPiece::ToBytes |
( |
| ) |
const |
◆ ToBytes() [2/2]
util::StatusOr<std::string> google::protobuf::util::converter::DataPiece::ToBytes |
( |
| ) |
const |
◆ ToDouble() [1/2]
util::StatusOr< double > google::protobuf::util::converter::DataPiece::ToDouble |
( |
| ) |
const |
◆ ToDouble() [2/2]
util::StatusOr<double> google::protobuf::util::converter::DataPiece::ToDouble |
( |
| ) |
const |
◆ ToEnum() [1/2]
◆ ToEnum() [2/2]
◆ ToFloat() [1/2]
util::StatusOr< float > google::protobuf::util::converter::DataPiece::ToFloat |
( |
| ) |
const |
◆ ToFloat() [2/2]
util::StatusOr<float> google::protobuf::util::converter::DataPiece::ToFloat |
( |
| ) |
const |
◆ ToInt32() [1/2]
◆ ToInt32() [2/2]
◆ ToInt64() [1/2]
◆ ToInt64() [2/2]
◆ ToString() [1/2]
util::StatusOr< std::string > google::protobuf::util::converter::DataPiece::ToString |
( |
| ) |
const |
◆ ToString() [2/2]
util::StatusOr<std::string> google::protobuf::util::converter::DataPiece::ToString |
( |
| ) |
const |
◆ ToUint32() [1/2]
◆ ToUint32() [2/2]
◆ ToUint64() [1/2]
◆ ToUint64() [2/2]
◆ type() [1/2]
Type google::protobuf::util::converter::DataPiece::type |
( |
| ) |
const |
|
inline |
◆ type() [2/2]
Type google::protobuf::util::converter::DataPiece::type |
( |
| ) |
const |
|
inline |
◆ use_strict_base64_decoding() [1/2]
bool google::protobuf::util::converter::DataPiece::use_strict_base64_decoding |
( |
| ) |
|
|
inline |
◆ use_strict_base64_decoding() [2/2]
bool google::protobuf::util::converter::DataPiece::use_strict_base64_decoding |
( |
| ) |
|
|
inline |
◆ ValueAsStringOrDefault() [1/2]
std::string google::protobuf::util::converter::DataPiece::ValueAsStringOrDefault |
( |
StringPiece |
default_string | ) |
const |
◆ ValueAsStringOrDefault() [2/2]
std::string google::protobuf::util::converter::DataPiece::ValueAsStringOrDefault |
( |
StringPiece |
default_string | ) |
const |
◆ ProtoWriter
◆ @286
◆ @624
◆ bool_
bool google::protobuf::util::converter::DataPiece::bool_ |
◆ double_
double google::protobuf::util::converter::DataPiece::double_ |
◆ float_
float google::protobuf::util::converter::DataPiece::float_ |
◆ i32_ [1/2]
int32_t google::protobuf::util::converter::DataPiece::i32_ |
◆ i32_ [2/2]
int32 google::protobuf::util::converter::DataPiece::i32_ |
◆ i64_ [1/2]
int64_t google::protobuf::util::converter::DataPiece::i64_ |
◆ i64_ [2/2]
int64 google::protobuf::util::converter::DataPiece::i64_ |
◆ str_ [1/2]
StringPiece google::protobuf::util::converter::DataPiece::str_ |
◆ str_ [2/2]
◆ type_
Type google::protobuf::util::converter::DataPiece::type_ |
|
private |
◆ u32_ [1/2]
uint32_t google::protobuf::util::converter::DataPiece::u32_ |
◆ u32_ [2/2]
uint32 google::protobuf::util::converter::DataPiece::u32_ |
◆ u64_ [1/2]
uint64_t google::protobuf::util::converter::DataPiece::u64_ |
◆ u64_ [2/2]
uint64 google::protobuf::util::converter::DataPiece::u64_ |
◆ use_strict_base64_decoding_
bool google::protobuf::util::converter::DataPiece::use_strict_base64_decoding_ |
|
private |
The documentation for this class was generated from the following files: