Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
SkSL::Program::ElementsCollection::iterator Class Reference

#include <SkSLProgram.h>

Public Member Functions

const ProgramElementoperator* ()
 
iteratoroperator++ ()
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 

Friends

class ElementsCollection
 

Detailed Description

Definition at line 77 of file SkSLProgram.h.

Member Function Documentation

◆ operator!=()

bool SkSL::Program::ElementsCollection::iterator::operator!= ( const iterator other) const
inline

Definition at line 100 of file SkSLProgram.h.

100 {
101 return !(*this == other);
102 }

◆ operator*()

const ProgramElement * SkSL::Program::ElementsCollection::iterator::operator* ( )
inline

Definition at line 79 of file SkSLProgram.h.

79 {
80 if (fShared != fSharedEnd) {
81 return *fShared;
82 } else {
83 return fOwned->get();
84 }
85 }

◆ operator++()

iterator & SkSL::Program::ElementsCollection::iterator::operator++ ( )
inline

Definition at line 87 of file SkSLProgram.h.

87 {
88 if (fShared != fSharedEnd) {
89 ++fShared;
90 } else {
91 ++fOwned;
92 }
93 return *this;
94 }

◆ operator==()

bool SkSL::Program::ElementsCollection::iterator::operator== ( const iterator other) const
inline

Definition at line 96 of file SkSLProgram.h.

96 {
97 return fOwned == other.fOwned && fShared == other.fShared;
98 }

Friends And Related Function Documentation

◆ ElementsCollection

friend class ElementsCollection
friend

Definition at line 107 of file SkSLProgram.h.


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