Flutter Engine
The Flutter Engine
Public Types | Static Public Member Functions | List of all members
dart::ClassKeyValueTrait Class Reference

#include <precompiler.h>

Public Types

typedef const ClassKey
 
typedef const ClassValue
 
typedef const ClassPair
 

Static Public Member Functions

static Key KeyOf (Pair kv)
 
static Value ValueOf (Pair kv)
 
static uword Hash (Key key)
 
static bool IsKeyEqual (Pair pair, Key key)
 

Detailed Description

Definition at line 85 of file precompiler.h.

Member Typedef Documentation

◆ Key

Definition at line 88 of file precompiler.h.

◆ Pair

Definition at line 90 of file precompiler.h.

◆ Value

Definition at line 89 of file precompiler.h.

Member Function Documentation

◆ Hash()

static uword dart::ClassKeyValueTrait::Hash ( Key  key)
inlinestatic

Definition at line 96 of file precompiler.h.

96 {
97 return Utils::WordHash(CombineHashes(key->id(), key->token_pos().Hash()));
98 }
static uint32_t WordHash(intptr_t key)
Definition: utils.cc:217
uint32_t CombineHashes(uint32_t hash, uint32_t other_hash)
Definition: hash.h:12

◆ IsKeyEqual()

static bool dart::ClassKeyValueTrait::IsKeyEqual ( Pair  pair,
Key  key 
)
inlinestatic

Definition at line 100 of file precompiler.h.

100 {
101 return pair->ptr() == key->ptr();
102 }

◆ KeyOf()

static Key dart::ClassKeyValueTrait::KeyOf ( Pair  kv)
inlinestatic

Definition at line 92 of file precompiler.h.

92{ return kv; }

◆ ValueOf()

static Value dart::ClassKeyValueTrait::ValueOf ( Pair  kv)
inlinestatic

Definition at line 94 of file precompiler.h.

94{ return kv; }

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