Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Friends | List of all members
skgpu::ganesh::ClipStack::ElementIter Class Reference

#include <ClipStack.h>

Public Member Functions

bool operator!= (const ElementIter &o) const
 
const Elementoperator* () const
 
ElementIteroperator++ ()
 
 ElementIter (RawElement::Stack::CRIter::Item item, int r)
 

Public Attributes

RawElement::Stack::CRIter::Item fItem
 
int fRemaining
 

Friends

class ClipStack
 

Detailed Description

Definition at line 335 of file ClipStack.h.

Constructor & Destructor Documentation

◆ ElementIter()

skgpu::ganesh::ClipStack::ElementIter::ElementIter ( RawElement::Stack::CRIter::Item  item,
int  r 
)
inline

Definition at line 353 of file ClipStack.h.

353: fItem(item), fRemaining(r) {}
RawElement::Stack::CRIter::Item fItem
Definition: ClipStack.h:355

Member Function Documentation

◆ operator!=()

bool skgpu::ganesh::ClipStack::ElementIter::operator!= ( const ElementIter o) const
inline

Definition at line 337 of file ClipStack.h.

337 {
338 return o.fItem != fItem && o.fRemaining != fRemaining;
339 }

◆ operator*()

const Element & skgpu::ganesh::ClipStack::ElementIter::operator* ( ) const
inline

Definition at line 341 of file ClipStack.h.

341{ return (*fItem).asElement(); }

◆ operator++()

ElementIter & skgpu::ganesh::ClipStack::ElementIter::operator++ ( )
inline

Definition at line 343 of file ClipStack.h.

343 {
344 // Skip over invalidated elements
345 do {
346 fRemaining--;
347 ++fItem;
348 } while(fRemaining > 0 && (*fItem).isInvalid());
349
350 return *this;
351 }

Friends And Related Function Documentation

◆ ClipStack

friend class ClipStack
friend

Definition at line 358 of file ClipStack.h.

Member Data Documentation

◆ fItem

RawElement::Stack::CRIter::Item skgpu::ganesh::ClipStack::ElementIter::fItem

Definition at line 355 of file ClipStack.h.

◆ fRemaining

int skgpu::ganesh::ClipStack::ElementIter::fRemaining

Definition at line 356 of file ClipStack.h.


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