Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::UnorderedHashTable< KeyTraits, kUserPayloadSize, StorageTraits >::Iterator Class Reference

#include <hash_table.h>

Public Member Functions

 Iterator (const UnorderedHashTable *table)
 
bool MoveNext ()
 
intptr_t Current ()
 

Detailed Description

template<typename KeyTraits, intptr_t kUserPayloadSize, typename StorageTraits = ArrayStorageTraits>
class dart::UnorderedHashTable< KeyTraits, kUserPayloadSize, StorageTraits >::Iterator

Definition at line 547 of file hash_table.h.

Constructor & Destructor Documentation

◆ Iterator()

template<typename KeyTraits , intptr_t kUserPayloadSize, typename StorageTraits = ArrayStorageTraits>
dart::UnorderedHashTable< KeyTraits, kUserPayloadSize, StorageTraits >::Iterator::Iterator ( const UnorderedHashTable table)
inlineexplicit

Definition at line 549 of file hash_table.h.

550 : table_(table), entry_(-1) {}
SI F table(const skcms_Curve *curve, F v)

Member Function Documentation

◆ Current()

template<typename KeyTraits , intptr_t kUserPayloadSize, typename StorageTraits = ArrayStorageTraits>
intptr_t dart::UnorderedHashTable< KeyTraits, kUserPayloadSize, StorageTraits >::Iterator::Current ( )
inline

Definition at line 560 of file hash_table.h.

560{ return entry_; }

◆ MoveNext()

template<typename KeyTraits , intptr_t kUserPayloadSize, typename StorageTraits = ArrayStorageTraits>
bool dart::UnorderedHashTable< KeyTraits, kUserPayloadSize, StorageTraits >::Iterator::MoveNext ( )
inline

Definition at line 551 of file hash_table.h.

551 {
552 while (entry_ < (table_->NumEntries() - 1)) {
553 ++entry_;
554 if (table_->IsOccupied(entry_)) {
555 return true;
556 }
557 }
558 return false;
559 }
bool IsOccupied(intptr_t entry) const
Definition: hash_table.h:341
intptr_t NumEntries() const
Definition: hash_table.h:374

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