Home
last modified time | relevance | path

Searched defs:TypedData (Results 1 – 1 of 1) sorted by relevance

/external/libbrillo/brillo/
Dany_internal_impl.h163 struct TypedData : public Data { struct
164 explicit TypedData(const T& value) : value_(value) {} in TypedData() function
166 explicit TypedData(T&& value) : value_(std::move(value)) {} in TypedData() argument
168 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() argument
205 void FastAssign(const T& source) { value_ = source; } in FastAssign()
207 void FastAssign(T&& source) { value_ = std::move(source); } in FastAssign()
209 T value_;