Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
GrOp::ChainRange< OpSubclass > Class Template Reference

#include <GrOp.h>

Public Member Functions

 ChainRange (const OpSubclass *head)
 
Iter begin ()
 
Iter end ()
 

Detailed Description

template<typename OpSubclass = GrOp>
class GrOp::ChainRange< OpSubclass >

Used for spewing information about ops when debugging. A helper for iterating over an op chain in a range for loop that also downcasts to a GrOp subclass. E.g.: for (MyOpSubClass& op : ChainRange<MyOpSubClass>(this)) { // ... }

Definition at line 212 of file GrOp.h.

Constructor & Destructor Documentation

◆ ChainRange()

template<typename OpSubclass = GrOp>
GrOp::ChainRange< OpSubclass >::ChainRange ( const OpSubclass *  head)
inlineexplicit

Definition at line 229 of file GrOp.h.

Member Function Documentation

◆ begin()

template<typename OpSubclass = GrOp>
Iter GrOp::ChainRange< OpSubclass >::begin ( )
inline

Definition at line 230 of file GrOp.h.

230{ return Iter(fHead); }

◆ end()

template<typename OpSubclass = GrOp>
Iter GrOp::ChainRange< OpSubclass >::end ( )
inline

Definition at line 231 of file GrOp.h.

231{ return Iter(nullptr); }

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