Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkDeque Class Reference
Inheritance diagram for SkDeque:

Classes

class  F2BIter
 
class  Iter
 

Public Member Functions

 SkDeque (size_t elemSize, int allocCount=1)
 elemSize specifies the size of each individual element in the deque allocCount specifies how many elements are to be allocated as a block
 
 SkDeque (size_t elemSize, void *storage, size_t storageSize, int allocCount=1)
 
bool empty () const
 
int count () const
 
size_t elemSize () const
 
const void * front () const
 
const void * back () const
 
void * front ()
 
void * back ()
 
void * push_front ()
 push_front and push_back return a pointer to the memory space for the new element
 
void * push_back ()
 
void pop_front ()
 
void pop_back ()
 

Private Member Functions

Block * allocateBlock (int allocCount)
 
void freeBlock (Block *block)
 
int numBlocksAllocated () const
 This returns the number of chunk blocks allocated by the deque. More...
 

Private Attributes

void * fFront
 
void * fBack
 
Block * fFrontBlock
 
Block * fBackBlock
 
size_t fElemSize
 
void * fInitialStorage
 
int fCount
 
int fAllocCount
 

Friends

class DequeUnitTestHelper
 

Member Function Documentation

int SkDeque::numBlocksAllocated ( ) const
private

This returns the number of chunk blocks allocated by the deque.

It can be used to gauge the effectiveness of the selected allocCount.


The documentation for this class was generated from the following file: