Searched defs:TypedData (Results 1 – 1 of 1) sorted by relevance
163 struct TypedData : public Data { struct164 explicit TypedData(const T& value) : value_(value) {} in TypedData() function166 explicit TypedData(T&& value) : value_(std::move(value)) {} in TypedData() argument168 const char* GetTypeTag() const override { return brillo::GetTypeTag<T>(); } in GetTypeTag()171 bool IsConvertibleToInteger() const override { in IsConvertibleToInteger()174 intmax_t GetAsInteger() const override { in GetAsInteger()200 static_cast<const TypedData<T>*>(other_data)->value_); in CompareEqual() argument205 void FastAssign(const T& source) { value_ = source; } in FastAssign()207 void FastAssign(T&& source) { value_ = std::move(source); } in FastAssign()209 T value_;