Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::IntrusiveDList< T, N >::Iterator< ContainerType, I > Class Template Reference

#include <intrusive_dlist.h>

Public Member Functions

 Iterator (IntrusiveDList< ContainerType, I > *head, IntrusiveDListEntry< ContainerType, I > *entry)
 
ContainerType * operator-> () const
 
ContainerType * operator* () const
 
bool operator== (const Iterator< ContainerType, I > &other) const
 
bool operator!= (const Iterator< ContainerType, I > &other) const
 
Iterator< ContainerType, I > & operator++ ()
 
Iterator< ContainerType, I > & operator-- ()
 

Detailed Description

template<typename T, int N = 1>
template<typename ContainerType, int I = 1>
class dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >

Definition at line 140 of file intrusive_dlist.h.

Constructor & Destructor Documentation

◆ Iterator()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::Iterator ( IntrusiveDList< ContainerType, I > *  head,
IntrusiveDListEntry< ContainerType, I > *  entry 
)
inline

Definition at line 142 of file intrusive_dlist.h.

144 : head_(head), entry_(entry) {}

Member Function Documentation

◆ operator!=()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
bool dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::operator!= ( const Iterator< ContainerType, I > &  other) const
inline

Definition at line 154 of file intrusive_dlist.h.

154 {
155 return !(*this == other);
156 }

◆ operator*()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
ContainerType * dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::operator* ( ) const
inline

Definition at line 148 of file intrusive_dlist.h.

148{ return entry_->container(); }

◆ operator++()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
Iterator< ContainerType, I > & dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::operator++ ( )
inline

Definition at line 158 of file intrusive_dlist.h.

158 {
159 entry_ = entry_->Next();
160 return *this;
161 }

◆ operator--()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
Iterator< ContainerType, I > & dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::operator-- ( )
inline

Definition at line 163 of file intrusive_dlist.h.

163 {
164 entry_ = entry_->Prev();
165 return *this;
166 }

◆ operator->()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
ContainerType * dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::operator-> ( ) const
inline

Definition at line 146 of file intrusive_dlist.h.

146{ return entry_->container(); }

◆ operator==()

template<typename T , int N = 1>
template<typename ContainerType , int I = 1>
bool dart::IntrusiveDList< T, N >::Iterator< ContainerType, I >::operator== ( const Iterator< ContainerType, I > &  other) const
inline

Definition at line 150 of file intrusive_dlist.h.

150 {
151 return entry_ == other.entry_;
152 }

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