| /xnu-11215/libkern/libkern/c++/ |
| H A D | bounded_ptr.h | 164 bounded_ptr() 165 : bounded_ptr(nullptr) 216 bounded_ptr(bounded_ptr<U, Policy> const & other) 249 *this = bounded_ptr(); 452 operator-(bounded_ptr const& a, bounded_ptr const& b) 514 operator==(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 521 operator!=(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 599 operator<(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 606 operator<=(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 613 operator>(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) [all …]
|
| H A D | bounded_array.h | 58 using iterator = bounded_ptr<T, TrappingPolicy>; 59 using const_iterator = bounded_ptr<T const, TrappingPolicy>;
|
| H A D | bounded_ptr_fwd.h | 36 struct __attribute__((trivial_abi)) bounded_ptr;
|
| H A D | OSBoundedPtrFwd.h | 47 using OSBoundedPtr = libkern::bounded_ptr<T, os_detail::panic_trapping_policy>;
|
| H A D | bounded_array_ref.h | 80 explicit constexpr bounded_array_ref(bounded_ptr<T, TrappingPolicy> data, size_t n) in bounded_array_ref() 165 using iterator = bounded_ptr<T, TrappingPolicy>;
|
| H A D | Makefile | 41 bounded_ptr.h \
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | bounded_ptr.h | 164 bounded_ptr() 165 : bounded_ptr(nullptr) 216 bounded_ptr(bounded_ptr<U, Policy> const & other) 249 *this = bounded_ptr(); 452 operator-(bounded_ptr const& a, bounded_ptr const& b) 514 operator==(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 521 operator!=(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 599 operator<(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 606 operator<=(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) 613 operator>(bounded_ptr<T, P1> const& a, bounded_ptr<U, P2> const& b) [all …]
|
| H A D | bounded_array.h | 58 using iterator = bounded_ptr<T, TrappingPolicy>; 59 using const_iterator = bounded_ptr<T const, TrappingPolicy>;
|
| H A D | bounded_ptr_fwd.h | 36 struct __attribute__((trivial_abi)) bounded_ptr;
|
| H A D | OSBoundedPtrFwd.h | 47 using OSBoundedPtr = libkern::bounded_ptr<T, os_detail::panic_trapping_policy>;
|
| H A D | bounded_array_ref.h | 80 explicit constexpr bounded_array_ref(bounded_ptr<T, TrappingPolicy> data, size_t n) in bounded_array_ref() 165 using iterator = bounded_ptr<T, TrappingPolicy>;
|
| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | discard_bounds.cpp | 76 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() 89 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() 99 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests() 111 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests()
|
| H A D | deref.cpp | 101 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() 115 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() 130 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests() 147 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests()
|
| H A D | arith.add_assign.cpp | 133 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests() 141 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests() 167 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests() 181 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
|
| H A D | arith.subtract_assign.cpp | 130 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests() 138 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests() 164 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests() 178 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
|
| H A D | assign.convert.cpp | 79 libkern::bounded_ptr<From, dummy_policy1> from(ptr1, array.begin(), array.end()); in tests() 80 libkern::bounded_ptr<To, dummy_policy2> to; in tests() 81 libkern::bounded_ptr<To, dummy_policy2>& ref = (to = from); in tests()
|
| H A D | reinterpret_cast.cpp | 60 libkern::bounded_ptr<From, non_default_policy> from(array.begin(), array.begin(), array.end()); in tests() 61 libkern::bounded_ptr<To, non_default_policy> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
|
| H A D | subscript.cpp | 154 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() 181 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() 212 …libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end() - 1… in tests()
|
| H A D | test_utils.h | 17 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
|
| H A D | ctor.convert.cpp | 79 libkern::bounded_ptr<From, dummy_policy1> from(ptr, array.begin(), array.end()); in tests() 80 libkern::bounded_ptr<To, dummy_policy2> to = from; // conversion (implicit) in tests()
|
| H A D | compare.equal.cpp | 124 libkern::bounded_ptr<TQual, dummy_policy1> const a(array.begin(), array.begin(), array.end()); in tests() 125 libkern::bounded_ptr<TQual, dummy_policy2> const b(array.begin(), array.begin(), array.end()); in tests()
|
| H A D | compare.order.cpp | 140 libkern::bounded_ptr<TQual, dummy_policy1> const a(array.begin(), array.begin(), array.end()); in tests() 141 libkern::bounded_ptr<TQual, dummy_policy2> const b(array.begin(), array.begin(), array.end()); in tests()
|
| H A D | compare.equal.nullptr.cpp | 55 libkern::bounded_ptr<QualT, non_default_policy> const ptr = nullptr; in tests()
|
| /xnu-11215/tests/bounded_array_src/ |
| H A D | test_policy.h | 22 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
|
| /xnu-11215/tests/bounded_array_ref_src/ |
| H A D | test_policy.h | 48 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
|