Home
last modified time | relevance | path

Searched refs:StructPtr (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/mojo/public/cpp/bindings/
Dstruct_ptr.h33 class StructPtr {
37 StructPtr() = default;
38 StructPtr(decltype(nullptr)) {} in StructPtr() function
40 ~StructPtr() = default;
42 StructPtr& operator=(decltype(nullptr)) { in decltype()
47 StructPtr(StructPtr&& other) { Take(&other); } in StructPtr() function
48 StructPtr& operator=(StructPtr&& other) {
54 StructPtr(base::in_place_t, Args&&... args) in StructPtr() function
59 return TypeConverter<U, StructPtr>::Convert(*this); in To()
76 void Swap(StructPtr* other) { std::swap(ptr_, other->ptr_); } in Swap()
[all …]
DREADME.md570 using EmployeePtr = mojo::StructPtr<Employee>;
599 a `struct` type is wrapped by the move-only `mojo::StructPtr` helper, which is
605 `mojo::StructPtr<T>` wrapping a new instance of the class constructed by
655 representative C++ class which is typically wrapped in a `mojo::StructPtr<T>`.
/external/libchrome/mojo/public/cpp/bindings/lib/
Dwtf_hash_util.h62 static unsigned GetHash(const StructPtr<T>& value) {
65 static bool Equal(const StructPtr<T>& left, const StructPtr<T>& right) {
89 struct DefaultHash<mojo::StructPtr<T>> {
94 struct HashTraits<mojo::StructPtr<T>>
95 : public GenericHashTraits<mojo::StructPtr<T>> {
97 static bool IsEmptyValue(const mojo::StructPtr<T>& value) {
100 static void ConstructDeletedValue(mojo::StructPtr<T>& slot, bool) {
103 static bool IsDeletedValue(const mojo::StructPtr<T>& value) {
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/
Dmodule.h.tmpl69 every use of {Inlined}StructPtr. #}
159 using {{struct.name}}Ptr = mojo::StructPtr<{{struct.name}}>;
170 typedef mojo::StructPtr<{{union.name}}> {{union.name}}Ptr;