Home
last modified time | relevance | path

Searched refs:nullable (Results 1 – 11 of 11) sorted by relevance

/system/ulib/fit/include/lib/fit/
A Dnullable.h74 class nullable final {
82 nullable(const nullable& other) = default;
83 nullable(nullable&& other) = default;
104 nullable& operator=(const nullable& other) = default;
105 nullable& operator=(nullable&& other) = default;
136 nullable(const nullable& other) = default;
137 nullable(nullable&& other)
173 nullable& operator=(const nullable& other) = default;
174 nullable& operator=(nullable&& other) {
204 void swap(nullable<T>& a, nullable<T>& b) {
[all …]
A Ddefer.h88 nullable<T> target_;
A Dpromise_internal.h204 ::fit::nullable<Handler> handler_;
205 ::fit::nullable<continuation_type> continuation_;
A Dpromise.h293 using state_type = nullable<Continuation>;
/system/utest/fit/
A Dnullable_tests.cpp191 static_assert(fit::nullable<void*>(void_a) == fit::nullable<void*>(void_a), "");
193 static_assert(!(fit::nullable<void*>(void_a) == fit::nullable<void*>(void_b)), "");
199 static_assert(fit::nullable<void*>(void_a) != fit::nullable<void*>(void_b), "");
292 fit::nullable<T> opt; in construct_without_value()
331 fit::nullable<T> c; in construct_copy()
351 fit::nullable<T> c; in construct_move()
419 fit::nullable<T> c; in assign_copy()
470 fit::nullable<T> c; in assign_move()
524 fit::nullable<T> d; in comparisons()
570 fit::nullable<T> c; in swapping()
[all …]
/system/ulib/fidl/include/lib/fidl/
A Dinternal.h164 const FidlNullability nullable; member
166 constexpr FidlCodedHandle(uint32_t handle_subtype, FidlNullability nullable) in FidlCodedHandle()
167 : handle_subtype(handle_subtype), nullable(nullable) {} in FidlCodedHandle()
174 const FidlNullability nullable; member
176 constexpr FidlCodedString(uint32_t max_size, FidlNullability nullable) in FidlCodedString()
177 : max_size(max_size), nullable(nullable) {} in FidlCodedString()
187 const FidlNullability nullable; member
190 FidlNullability nullable) in FidlCodedVector()
191 : element(element), max_count(max_count), element_size(element_size), nullable(nullable) {} in FidlCodedVector()
/system/utest/fidl-compiler/
A Djson_generator_tests.cpp171 "nullable": false in json_generator_test_empty_struct()
195 "nullable": false in json_generator_test_empty_struct()
217 "nullable": false in json_generator_test_empty_struct()
235 "nullable": false in json_generator_test_empty_struct()
397 "nullable": false in json_generator_test_union()
399 "nullable": false in json_generator_test_union()
422 "nullable": false in json_generator_test_union()
447 "nullable": false in json_generator_test_union()
459 "nullable": false in json_generator_test_union()
533 "nullable": false in json_generator_test_inheritance()
[all …]
/system/utest/banjo-compiler/
A Djson_generator_tests.cpp170 "nullable": false in json_generator_test_union()
172 "nullable": false in json_generator_test_union()
192 "nullable": false in json_generator_test_union()
214 "nullable": false in json_generator_test_union()
225 "nullable": false in json_generator_test_union()
/system/ulib/fidl/
A Dformatting.cpp63 void FormatNullability(StringBuilder* str, fidl::FidlNullability nullable) { in FormatNullability() argument
64 if (nullable == fidl::kNullable) { in FormatNullability()
124 FormatNullability(str, type->coded_string.nullable); in FormatTypeName()
190 FormatNullability(str, type->coded_handle.nullable); in FormatTypeName()
199 FormatNullability(str, type->coded_vector.nullable); in FormatTypeName()
A Dbuffer_walker.h347 if (!frame->string_state.nullable) {
383 if (frame->handle_state.nullable) {
410 if (!frame->vector_state.nullable) {
634 string_state.nullable = fidl_type->coded_string.nullable;
638 handle_state.nullable = fidl_type->coded_handle.nullable;
645 vector_state.nullable = fidl_type->coded_vector.nullable;
760 bool nullable;
763 bool nullable;
769 bool nullable;
/system/ulib/fit/
A DREADME.md115 fit::nullable.
120 ### fit::nullable
122 - Case study: fit::defer has a need to store a closure that may be nullable.
124 fit::nullable thereby vastly simplifying its implementation.
132 fit::nullable makes it easier to eliminate this redundant state and
137 bool and passing, whereas fit::nullable eliminates this overhead by
139 - So we introduce fit::nullable to handle both cases systematically while

Completed in 29 milliseconds