Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
BlockIndexIterator< T, Forward, Const, Start, End, Next, Resolve > Class Template Reference

#include <SkTBlockList.h>

Classes

class  Item
 

Public Member Functions

 BlockIndexIterator (BlockIter iter)
 
Item begin () const
 
Item end () const
 

Detailed Description

template<typename T, bool Forward, bool Const, IndexFn Start, IndexFn End, NextFn Next, ItemFn< T, typename std::conditional< Const, const SkBlockAllocator::Block, SkBlockAllocator::Block >::type > Resolve>
class BlockIndexIterator< T, Forward, Const, Start, End, Next, Resolve >

BlockIndexIterator provides a reusable iterator template for collections built on top of a SkBlockAllocator, where each item is of the same type, and the index to an item can be iterated over in a known manner. It supports const and non-const, and forward and reverse, assuming it's provided with proper functions for starting, ending, and advancing.

Definition at line 392 of file SkTBlockList.h.

Constructor & Destructor Documentation

◆ BlockIndexIterator()

template<typename T , bool Forward, bool Const, IndexFn Start, IndexFn End, NextFn Next, ItemFn< T, typename std::conditional< Const, const SkBlockAllocator::Block, SkBlockAllocator::Block >::type > Resolve>
BlockIndexIterator< T, Forward, Const, Start, End, Next, Resolve >::BlockIndexIterator ( BlockIter  iter)
inline

Definition at line 395 of file SkTBlockList.h.

395: fBlockIter(iter) {}

Member Function Documentation

◆ begin()

template<typename T , bool Forward, bool Const, IndexFn Start, IndexFn End, NextFn Next, ItemFn< T, typename std::conditional< Const, const SkBlockAllocator::Block, SkBlockAllocator::Block >::type > Resolve>
Item BlockIndexIterator< T, Forward, Const, Start, End, Next, Resolve >::begin ( ) const
inline

Definition at line 450 of file SkTBlockList.h.

450{ return Item(fBlockIter.begin()); }

◆ end()

template<typename T , bool Forward, bool Const, IndexFn Start, IndexFn End, NextFn Next, ItemFn< T, typename std::conditional< Const, const SkBlockAllocator::Block, SkBlockAllocator::Block >::type > Resolve>
Item BlockIndexIterator< T, Forward, Const, Start, End, Next, Resolve >::end ( ) const
inline

Definition at line 451 of file SkTBlockList.h.

451{ return Item(fBlockIter.end()); }

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