10 #ifndef SkDeque_DEFINED
11 #define SkDeque_DEFINED
32 explicit SkDeque(
size_t elemSize,
int allocCount = 1);
33 SkDeque(
size_t elemSize,
void* storage,
size_t storageSize,
int allocCount = 1);
36 bool empty()
const {
return 0 == fCount; }
37 int count()
const {
return fCount; }
38 size_t elemSize()
const {
return fElemSize; }
40 const void* front()
const {
return fFront; }
41 const void* back()
const {
return fBack; }
44 return (
void*)((
const SkDeque*)
this)->front();
48 return (
void*)((
const SkDeque*)
this)->back();
81 void reset(
const SkDeque& d, IterStart startLoc);
84 SkDeque::Block* fCurBlock;
107 this->INHERITED::reset(d, kFront_IterStart);
111 typedef Iter INHERITED;
116 friend class DequeUnitTestHelper;
124 void* fInitialStorage;
128 Block* allocateBlock(
int allocCount);
129 void freeBlock(Block* block);
135 int numBlocksAllocated()
const;
void reset(const SkDeque &d)
Wrap Iter::reset to force initialization to the beginning of the deque.
Definition: SkDeque.h:106
F2BIter(const SkDeque &d)
Wrap Iter's 2 parameter ctor to force initialization to the beginning of the deque.
Definition: SkDeque.h:98