Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkDeque::F2BIter Class Reference

#include <SkDeque.h>

Inheritance diagram for SkDeque::F2BIter:
SkDeque::Iter

Public Member Functions

 F2BIter ()
 
 F2BIter (const SkDeque &d)
 
void reset (const SkDeque &d)
 
void * next ()
 

Detailed Description

Definition at line 87 of file SkDeque.h.

Constructor & Destructor Documentation

◆ F2BIter() [1/2]

SkDeque::F2BIter::F2BIter ( )
inline

Definition at line 89 of file SkDeque.h.

89{}

◆ F2BIter() [2/2]

SkDeque::F2BIter::F2BIter ( const SkDeque d)
inline

Wrap Iter's 2 parameter ctor to force initialization to the beginning of the deque

Definition at line 95 of file SkDeque.h.

95: INHERITED(d, kFront_IterStart) {}
@ kFront_IterStart
Definition SkDeque.h:65
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition main.cc:19

Member Function Documentation

◆ next()

void * SkDeque::Iter::next ( )

Definition at line 75 of file SkDeque.cpp.

251 {
252 char* pos = fPos;
253
254 if (pos) { // if we were valid, try to move to the next setting
255 char* next = pos + fElemSize;
256 SkASSERT(next <= fCurBlock->fEnd);
257 if (next == fCurBlock->fEnd) { // exhausted this chunk, move to next
258 do {
259 fCurBlock = fCurBlock->fNext;
260 } while (fCurBlock != nullptr && fCurBlock->fBegin == nullptr);
261 next = fCurBlock ? fCurBlock->fBegin : nullptr;
262 }
263 fPos = next;
264 }
265 return pos;
266}
SkPoint pos
#define SkASSERT(cond)
Definition SkAssert.h:116

◆ reset()

void SkDeque::F2BIter::reset ( const SkDeque d)
inline

Wrap Iter::reset to force initialization to the beginning of the deque

Definition at line 103 of file SkDeque.h.

103 {
105 }
void reset(const SkDeque &d, IterStart startLoc)
Definition SkDeque.cpp:292

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