Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Iterator Class Reference

#include <hash_map.h>

Public Member Functions

KeyValueTrait::Pair * Next ()
 
void Reset ()
 

Friends

template<typename T , typename Bs , typename A >
class BaseDirectChainedHashMap
 

Detailed Description

template<typename KeyValueTrait, typename B, typename Allocator = Zone>
class dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Iterator

Definition at line 70 of file hash_map.h.

Member Function Documentation

◆ Next()

template<typename KeyValueTrait , typename B , typename Allocator >
KeyValueTrait::Pair * dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Iterator::Next

Definition at line 169 of file hash_map.h.

169 {
170 const typename KeyValueTrait::Value kNoValue =
171 KeyValueTrait::ValueOf(typename KeyValueTrait::Pair());
172 while (pair_index_ < map_.next_pair_index_) {
173 if (KeyValueTrait::ValueOf(map_.pairs_[pair_index_]) != kNoValue) {
174 intptr_t old_index = pair_index_;
175 pair_index_++;
176 return &map_.pairs_[old_index];
177 }
178 pair_index_++;
179 }
180 return nullptr;
181}
KeyValueTrait::Pair * pairs_
Definition: hash_map.h:96

◆ Reset()

template<typename KeyValueTrait , typename B , typename Allocator = Zone>
void dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Iterator::Reset ( )
inline

Definition at line 74 of file hash_map.h.

74{ pair_index_ = 0; }

Friends And Related Function Documentation

◆ BaseDirectChainedHashMap

template<typename KeyValueTrait , typename B , typename Allocator = Zone>
template<typename T , typename Bs , typename A >
friend class BaseDirectChainedHashMap
friend

Definition at line 84 of file hash_map.h.


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