Home
last modified time | relevance | path

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

/external/libbrillo/brillo/
Dany_internal_impl.h164 struct TypedData : public Data { struct
165 explicit TypedData(const T& value) : value_(value) {} in TypedData() function
167 explicit TypedData(T&& value) : value_(std::move(value)) {} in TypedData() function
169 const char* GetTypeTag() const override { return brillo::GetTypeTag<T>(); } in GetTypeTag()
172 bool IsConvertibleToInteger() const override { in IsConvertibleToInteger()
175 intmax_t GetAsInteger() const override { in GetAsInteger()
201 static_cast<const TypedData<T>*>(other_data)->value_); in CompareEqual() argument
206 void FastAssign(const T& source) { value_ = source; } in FastAssign()
208 void FastAssign(T&& source) { value_ = std::move(source); } in FastAssign()
210 T value_;