Home
last modified time | relevance | path

Searched refs:PtrType (Results 1 – 21 of 21) sorted by relevance

/system/ulib/fbl/include/fbl/
A Dintrusive_pointer_traits.h27 using PtrType = T*;
42 static inline PtrType Reclaim(RawPtrType ptr) {
53 using PtrType = ::fbl::unique_ptr<T>;
67 static inline PtrType Reclaim(RawPtrType ptr) {
68 return PtrType(ptr);
78 using PtrType = ::std::unique_ptr<T, Deleter>;
92 static inline PtrType Reclaim(RawPtrType ptr) {
93 return PtrType(ptr);
103 using PtrType = ::fbl::RefPtr<T>;
112 static inline PtrType Copy(const RawPtrType& ptr) { return PtrType(ptr); }
[all …]
A Dintrusive_double_list.h102 using PtrType = typename PtrTraits::PtrType;
190 void push_front(const PtrType& ptr) { push_front(PtrType(ptr)); }
194 void push_back(const PtrType& ptr) { push_back(PtrType(ptr)); }
198 void insert(const iterator& iter, const PtrType& ptr) { insert(iter, PtrType(ptr)); }
203 void insert(ValueType& before, const PtrType& ptr) { insert(before, PtrType(ptr)); }
367 PtrType erase_if(UnaryFn fn) {
372 return PtrType(nullptr);
403 PtrType replace_if(UnaryFn fn, const PtrType& ptr) {
417 PtrType replace_if(UnaryFn fn, PtrType&& ptr) {
429 PtrType replace(typename PtrTraits::RefType target, PtrType replacement) {
[all …]
A Dintrusive_wavl_tree_internal.h66 template <typename PtrType, typename RankType> struct WAVLTreeNodeStateBase; // Fwd decl
67 template <typename PtrType, typename RankType = bool> struct WAVLTreeNodeState; // Partial spec
69 template <typename PtrType>
70 struct WAVLTreeNodeState<PtrType, int32_t> : public WAVLTreeNodeStateBase<PtrType, int32_t> {
A Dintrusive_container_utils.h70 using PtrType = typename PtrTraits::PtrType;
73 static PtrType erase(ContainerType& container, ValueType& obj) {
86 using PtrType = typename PtrTraits::PtrType;
89 static PtrType erase(ContainerType& container, ValueType& obj) {
108 using PtrType = typename PtrTraits::PtrType;
112 static PtrType erase(ContainerType& container, const KeyType& key) {
126 using PtrType = typename PtrTraits::PtrType;
129 static PtrType erase(ContainerType& container, const KeyType& key) {
A Dintrusive_single_list.h229 using PtrType = typename PtrTraits::PtrType;
308 void push_front(const PtrType& ptr) { push_front(PtrType(ptr)); }
309 void push_front(PtrType&& ptr) {
344 PtrType pop_front() {
346 return PtrType(nullptr);
402 return PtrType(nullptr);
439 PtrType erase_if(UnaryFn fn) {
443 return PtrType(nullptr);
454 return PtrType(nullptr);
485 PtrType replace_if(UnaryFn fn, const PtrType& ptr) {
[all …]
A Dintrusive_hash_table.h77 using PtrType = _PtrType;
135 void insert(const PtrType& ptr) { insert(PtrType(ptr)); } in insert()
136 void insert(PtrType&& ptr) { in insert()
192 PtrType insert_or_replace(const PtrType& ptr) { in insert_or_replace()
196 PtrType insert_or_replace(PtrType&& ptr) { in insert_or_replace()
236 PtrType erase(const KeyType& key) { in erase()
248 return PtrType(nullptr); in erase()
253 PtrType erase(ValueType& obj) { in erase()
293 PtrType erase_if(UnaryFn fn) { in erase_if()
295 return PtrType(nullptr); in erase_if()
[all …]
A Dintrusive_wavl_tree.h91 template <typename PtrType>
92 struct WAVLTreeNodeState<PtrType, bool> : public WAVLTreeNodeStateBase<PtrType, bool> {
108 template <typename PtrType>
135 using PtrType = _PtrType;
233 void insert(const PtrType& ptr) { insert(PtrType(ptr)); }
272 PtrType insert_or_replace(const PtrType& ptr) {
276 PtrType insert_or_replace(PtrType&& ptr) {
375 PtrType erase(ValueType& obj) {
477 PtrType erase_if(UnaryFn fn) {
482 return PtrType(nullptr);
[all …]
A Dslab_allocator.h338 using PtrType = T*;
341 static constexpr PtrType CreatePtr(ObjType* ptr) { return ptr; }
348 using PtrType = unique_ptr<T>;
351 static constexpr PtrType CreatePtr(ObjType* ptr) { return PtrType(ptr); }
358 using PtrType = RefPtr<T>;
528 using PtrType = typename SATraits::PtrType;
572 PtrType New(ConstructorSignature&&... args) {
687 using PtrType = typename PtrTraits::PtrType;
710 using PtrType = typename SATraits::PtrType;
847 using PtrType = typename SATraits::PtrType;
[all …]
/system/utest/fbl/include/fbl/tests/intrusive_containers/
A Dobjects.h191 static void ReleaseObject(PtrType& ptr) { in ReleaseObject()
200 static inline PtrType& Transfer(PtrType& ptr) { return ptr; } in Transfer()
209 using ConstPtrType = const PtrType;
218 static void ReleaseObject(PtrType& ptr) { in ReleaseObject()
226 static inline PtrType&& Transfer(PtrType& ptr) { return std::move(ptr); } in Transfer()
235 using ConstPtrType = const PtrType;
252 static inline PtrType&& Transfer(PtrType& ptr) { return std::move(ptr); } in Transfer()
261 using ConstPtrType = const PtrType;
285 static inline PtrType&& Transfer(PtrType& ptr) { return std::move(ptr); } in Transfer()
294 using ConstPtrType = const PtrType;
[all …]
A Dtest_environment_utils.h27 using PtrType = typename PtrTraits::PtrType;
29 static void MoveInto(ContainerType& container, PtrType&& ptr) {
38 using PtrType = typename PtrTraits::PtrType;
40 static void MoveInto(ContainerType& container, PtrType&& ptr) {
A Dsequence_container_test_environment.h25 using PtrType = typename TestEnvTraits::PtrType; variable
162 PtrType tmp = container().pop_front(); in PopFront()
217 PtrType tmp = container().pop_back(); in PopBack()
248 PtrType should_be_null = container().pop_back(); in PopBack()
311 PtrType tmp = container().erase_next(iter); in EraseNext()
839 PtrType replaced = container().replace_if( in ReplaceIfCopy()
880 PtrType replaced = container().replace_if( in ReplaceIfCopy()
927 PtrType ptr = container().pop_front(); in ReplaceIfCopy()
1039 PtrType ptr = container().pop_front(); in ReplaceIfMove()
1103 PtrType ptr = container().pop_front(); in ReplaceCopy()
[all …]
A Dassociative_container_test_environment.h23 using PtrType = typename TestEnvTraits::PtrType; variable
53 bool SetTestObjKeys(const PtrType& test_obj, PopulateMethod method) { in SetTestObjKeys()
121 PtrType new_object = this->CreateTrackedObject(i, i, hold_ref);
289 PtrType new_object = this->CreateTrackedObject(i, i, true); in DoInsertOrFind()
348 PtrType new_object = TestEnvTraits::CreateObject(i); in DoInsertOrFind()
431 PtrType new_obj = TestEnvTraits::CreateObject(i); in DoInsertOrReplace()
469 PtrType ptr = container().erase(container().begin()); in DoInsertOrReplace()
545 static const PtrType& Op(PtrType& ptr) { return ptr; }
552 static const PtrType& Op(PtrType& ptr) { return ptr; }
554 static PtrType&& Op(PtrType& ptr) { return std::move(ptr); }
[all …]
A Dbase_test_environments.h30 using PtrType = typename TestEnvTraits::PtrType; variable
37 return PtrType(nullptr); in CreateTrackedObject()
41 return PtrType(nullptr); in CreateTrackedObject()
70 using PtrType = typename Base::PtrType; variable
95 using PtrType = typename Base::PtrType; variable
117 using PtrType = typename Base::PtrType; variable
139 using PtrType = typename Base::PtrType; variable
161 using PtrType = typename Base::PtrType; variable
199 using PtrType = typename TestEnvTraits::PtrType; variable
1162 PtrType ptr; in IterCopyPointer()
[all …]
/system/utest/fbl/
A Dintrusive_hash_table_dll_tests.cpp20 template <typename PtrType>
23 using BucketStateType = DoublyLinkedListNodeState<PtrType>;
55 template <typename PtrType>
58 friend struct OtherHashTraits<PtrType>;
60 typename OtherHashTraits<PtrType>::BucketStateType bucket_state_;
63 template <typename PtrType>
68 using ContainerType = HashTable<size_t, PtrType, DoublyLinkedList<PtrType>>;
69 using ContainableBaseClass = DoublyLinkedListable<PtrType>;
74 using OtherContainerTraits = OtherHashTraits<PtrType>;
75 using OtherContainerStateType = OtherHashState<PtrType>;
[all …]
A Dintrusive_hash_table_sll_tests.cpp20 template <typename PtrType>
23 using BucketStateType = SinglyLinkedListNodeState<PtrType>;
55 template <typename PtrType>
58 friend struct OtherHashTraits<PtrType>;
60 typename OtherHashTraits<PtrType>::BucketStateType bucket_state_;
63 template <typename PtrType>
68 using ContainerType = HashTable<size_t, PtrType>;
69 using ContainableBaseClass = SinglyLinkedListable<PtrType>;
74 using OtherContainerTraits = OtherHashTraits<PtrType>;
75 using OtherContainerStateType = OtherHashState<PtrType>;
[all …]
A Dslab_allocator_tests.cpp127 using PtrType = ObjType*; typedef
131 using RefList = fbl::DoublyLinkedList<PtrType>;
151 using PtrType = fbl::unique_ptr<ObjType>; typedef
155 using RefList = fbl::DoublyLinkedList<PtrType>;
176 using PtrType = fbl::RefPtr<ObjType>; typedef
180 using RefList = fbl::DoublyLinkedList<PtrType>;
255 typename Traits::PtrType ptr; in do_slab_test()
377 using PtrType = ObjType*; typedef
403 using PtrType = fbl::unique_ptr<ObjType>; typedef
430 using PtrType = fbl::RefPtr<ObjType>; typedef
[all …]
A Dintrusive_wavl_tree_tests.cpp22 using PtrType = typename ContainerStateType::PtrType; typedef
23 using PtrTraits = ::fbl::internal::ContainerPtrTraits<PtrType>;
48 using PtrType = _PtrType; typedef in fbl::tests::intrusive_containers::OtherTreeNodeState
51 friend struct OtherTreeTraits<OtherTreeNodeState<KeyType, PtrType>>;
52 WAVLTreeNodeState<PtrType> node_state_;
56 template <typename PtrType>
62 using ContainerType = WAVLTree<KeyType, PtrType>;
63 using ContainableBaseClass = WAVLTreeContainable<PtrType>;
64 using ContainerStateType = WAVLTreeNodeState<PtrType>;
66 using OtherContainerStateType = OtherTreeNodeState<KeyType, PtrType>;
[all …]
A Dintrusive_singly_linked_list_tests.cpp23 template <typename PtrType>
28 using ContainerType = SinglyLinkedList<PtrType>;
29 using ContainableBaseClass = SinglyLinkedListable<PtrType>;
30 using ContainerStateType = SinglyLinkedListNodeState<PtrType>;
34 using OtherContainerType = SinglyLinkedList<PtrType, OtherContainerTraits>;
A Dintrusive_doubly_linked_list_tests.cpp23 template <typename PtrType>
28 using ContainerType = DoublyLinkedList<PtrType>;
29 using ContainableBaseClass = DoublyLinkedListable<PtrType>;
30 using ContainerStateType = DoublyLinkedListNodeState<PtrType>;
34 using OtherContainerType = DoublyLinkedList<PtrType, OtherContainerTraits>;
/system/ulib/fs/include/fs/
A Dqueue.h16 template <typename PtrType>
19 using QueueType = fbl::SinglyLinkedList<PtrType>;
38 PtrType pop() { return queue_.pop_front(); } in pop()
/system/dev/tee/optee/
A Doptee-message.h136 template <typename PtrType>
138 static_assert(fbl::is_same<PtrType, SharedMemory*>::value ||
139 fbl::is_same<PtrType, fbl::unique_ptr<SharedMemory>>::value,
143 using SharedMemoryPtr = PtrType;

Completed in 43 milliseconds