OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDeque_DEFINED | 10 #ifndef SkDeque_DEFINED |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 */ | 74 */ |
75 Iter(); | 75 Iter(); |
76 | 76 |
77 Iter(const SkDeque& d, IterStart startLoc); | 77 Iter(const SkDeque& d, IterStart startLoc); |
78 void* next(); | 78 void* next(); |
79 void* prev(); | 79 void* prev(); |
80 | 80 |
81 void reset(const SkDeque& d, IterStart startLoc); | 81 void reset(const SkDeque& d, IterStart startLoc); |
82 | 82 |
83 private: | 83 private: |
84 SkDeque::Block* fCurBlock; | 84 SkDeque::Block* fCurBlock; |
85 char* fPos; | 85 char* fPos; |
86 size_t fElemSize; | 86 size_t fElemSize; |
87 }; | 87 }; |
88 | 88 |
89 // Inherit privately from Iter to prevent access to reverse iteration | 89 // Inherit privately from Iter to prevent access to reverse iteration |
90 class F2BIter : private Iter { | 90 class F2BIter : private Iter { |
91 public: | 91 public: |
92 F2BIter() {} | 92 F2BIter() {} |
93 | 93 |
94 /** | 94 /** |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 void freeBlock(Block* block); | 129 void freeBlock(Block* block); |
130 | 130 |
131 /** | 131 /** |
132 * This returns the number of chunk blocks allocated by the deque. It | 132 * This returns the number of chunk blocks allocated by the deque. It |
133 * can be used to gauge the effectiveness of the selected allocCount. | 133 * can be used to gauge the effectiveness of the selected allocCount. |
134 */ | 134 */ |
135 int numBlocksAllocated() const; | 135 int numBlocksAllocated() const; |
136 }; | 136 }; |
137 | 137 |
138 #endif | 138 #endif |
OLD | NEW |