Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
dart::IdentitySetKeyValueTrait< V > Class Template Reference

#include <hash_map.h>

Public Types

typedef V Key
 
typedef V Value
 
typedef V Pair
 

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

template<typename V>
class dart::IdentitySetKeyValueTrait< V >

Definition at line 567 of file hash_map.h.

Member Typedef Documentation

◆ Key

template<typename V >
typedef V dart::IdentitySetKeyValueTrait< V >::Key

Definition at line 570 of file hash_map.h.

◆ Pair

template<typename V >
typedef V dart::IdentitySetKeyValueTrait< V >::Pair

Definition at line 572 of file hash_map.h.

◆ Value

template<typename V >
typedef V dart::IdentitySetKeyValueTrait< V >::Value

Definition at line 571 of file hash_map.h.

Member Function Documentation

◆ Hash()

template<typename V >
static uword dart::IdentitySetKeyValueTrait< V >::Hash ( Key  key)
inlinestatic

Definition at line 578 of file hash_map.h.

578 {
579 return Utils::StringHash(reinterpret_cast<const char*>(&key), sizeof(key));
580 }
static uint32_t StringHash(const void *data, int length)
Definition utils.cc:114

◆ IsKeyEqual()

template<typename V >
static bool dart::IdentitySetKeyValueTrait< V >::IsKeyEqual ( Pair  pair,
Key  key 
)
inlinestatic

Definition at line 582 of file hash_map.h.

582{ return pair == key; }

◆ KeyOf()

template<typename V >
static Key dart::IdentitySetKeyValueTrait< V >::KeyOf ( Pair  kv)
inlinestatic

Definition at line 574 of file hash_map.h.

574{ return kv; }

◆ ValueOf()

template<typename V >
static Value dart::IdentitySetKeyValueTrait< V >::ValueOf ( Pair  kv)
inlinestatic

Definition at line 576 of file hash_map.h.

576{ return kv; }

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