Lines Matching +full:has +full:- +full:value
8 * http://www.apache.org/licenses/LICENSE-2.0
30 // Represents a type-tagged union of different basic types.
52 explicit Variant(const int8_t value) in Variant() argument
53 : type_(TYPE_INT8_VALUE), int8_value_(value) {} in Variant()
54 explicit Variant(const uint8_t value) in Variant() argument
55 : type_(TYPE_UINT8_VALUE), uint8_value_(value) {} in Variant()
56 explicit Variant(const int value) in Variant() argument
57 : type_(TYPE_INT_VALUE), int_value_(value) {} in Variant()
58 explicit Variant(const uint value) in Variant() argument
59 : type_(TYPE_UINT_VALUE), uint_value_(value) {} in Variant()
60 explicit Variant(const int64 value) in Variant() argument
61 : type_(TYPE_INT64_VALUE), long_value_(value) {} in Variant()
62 explicit Variant(const uint64 value) in Variant() argument
63 : type_(TYPE_UINT64_VALUE), ulong_value_(value) {} in Variant()
64 explicit Variant(const float value) in Variant() argument
65 : type_(TYPE_FLOAT_VALUE), float_value_(value) {} in Variant()
66 explicit Variant(const double value) in Variant() argument
67 : type_(TYPE_DOUBLE_VALUE), double_value_(value) {} in Variant()
68 explicit Variant(const StringPiece value) in Variant() argument
69 : type_(TYPE_STRING_VALUE), string_value_(value.ToString()) {} in Variant()
70 explicit Variant(const std::string value) in Variant() argument
71 : type_(TYPE_STRING_VALUE), string_value_(value) {} in Variant()
72 explicit Variant(const char* value) in Variant() argument
73 : type_(TYPE_STRING_VALUE), string_value_(value) {} in Variant()
74 explicit Variant(const bool value) in Variant() argument
75 : type_(TYPE_BOOL_VALUE), bool_value_(value) {} in Variant()
76 explicit Variant(const std::vector<std::string>& value) in Variant() argument
77 : type_(TYPE_STRING_VECTOR_VALUE), string_vector_value_(value) {} in Variant()
78 explicit Variant(const std::vector<float>& value) in Variant() argument
79 : type_(TYPE_FLOAT_VECTOR_VALUE), float_vector_value_(value) {} in Variant()
80 explicit Variant(const std::vector<int>& value) in Variant() argument
81 : type_(TYPE_INT_VECTOR_VALUE), int_vector_value_(value) {} in Variant()
82 explicit Variant(const std::map<std::string, Variant>& value) in Variant() argument
84 string_variant_map_value_(value) {} in Variant()
93 T Value() const { in Value() function
94 static_assert(dependent_false<T>::value, "Not supported."); in Value()
98 int8 Value() const { in Value() function
99 TC3_CHECK(Has<int8>()); in Value()
104 uint8 Value() const { in Value() function
105 TC3_CHECK(Has<uint8>()); in Value()
110 int Value() const { in Value() function
111 TC3_CHECK(Has<int>()); in Value()
116 uint Value() const { in Value() function
117 TC3_CHECK(Has<uint>()); in Value()
122 int64 Value() const { in Value() function
123 TC3_CHECK(Has<int64>()); in Value()
128 uint64 Value() const { in Value() function
129 TC3_CHECK(Has<uint64>()); in Value()
134 float Value() const { in Value() function
135 TC3_CHECK(Has<float>()); in Value()
140 double Value() const { in Value() function
141 TC3_CHECK(Has<double>()); in Value()
146 bool Value() const { in Value() function
147 TC3_CHECK(Has<bool>()); in Value()
156 TC3_CHECK(Has<std::string>()); in ConstRefValue()
162 TC3_CHECK(Has<std::vector<std::string>>()); in ConstRefValue()
168 TC3_CHECK(Has<std::vector<float>>()); in ConstRefValue()
174 TC3_CHECK(Has<std::vector<int>>()); in ConstRefValue()
180 TC3_CHECK((Has<std::map<std::string, Variant>>())); in ConstRefValue()
185 bool Has() const;
188 bool Has<int8>() const {
193 bool Has<uint8>() const {
198 bool Has<int>() const {
203 bool Has<uint>() const {
208 bool Has<int64>() const {
213 bool Has<uint64>() const {
218 bool Has<float>() const {
223 bool Has<double>() const {
228 bool Has<bool>() const {
233 bool Has<std::string>() const {
238 bool Has<std::vector<std::string>>() const {
243 bool Has<std::vector<float>>() const {
248 bool Has<std::vector<int>>() const {
253 bool Has<std::map<std::string, Variant>>() const {
257 // Converts the value of this variant to its string representation, regardless
258 // of the type of the actual value.
285 // Pretty-printing function for Variant.
287 const Variant& value);