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

#include <hash_map.h>

Classes

struct  Pair
 

Public Types

typedef KKey
 
typedef V Value
 

Static Public Member Functions

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

Detailed Description

template<typename K, typename V>
class dart::RawPointerKeyValueTrait< K, V >

Definition at line 398 of file hash_map.h.

Member Typedef Documentation

◆ Key

template<typename K , typename V >
typedef K* dart::RawPointerKeyValueTrait< K, V >::Key

Definition at line 400 of file hash_map.h.

◆ Value

template<typename K , typename V >
typedef V dart::RawPointerKeyValueTrait< K, V >::Value

Definition at line 401 of file hash_map.h.

Member Function Documentation

◆ Hash()

template<typename K , typename V >
static uword dart::RawPointerKeyValueTrait< K, V >::Hash ( Key  key)
inlinestatic

Definition at line 414 of file hash_map.h.

414{ return reinterpret_cast<intptr_t>(key); }

◆ IsKeyEqual()

template<typename K , typename V >
static bool dart::RawPointerKeyValueTrait< K, V >::IsKeyEqual ( Pair  kv,
Key  key 
)
inlinestatic

Definition at line 415 of file hash_map.h.

415{ return kv.key == key; }

◆ KeyOf()

template<typename K , typename V >
static Key dart::RawPointerKeyValueTrait< K, V >::KeyOf ( Pair  kv)
inlinestatic

Definition at line 412 of file hash_map.h.

412{ return kv.key; }

◆ ValueOf()

template<typename K , typename V >
static Value dart::RawPointerKeyValueTrait< K, V >::ValueOf ( Pair  kv)
inlinestatic

Definition at line 413 of file hash_map.h.

413{ return kv.value; }

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