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

#include <hash_map.h>

Public Types

typedef T Value
 
typedef intptr_t Key
 
typedef T Pair
 

Static Public Member Functions

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

Detailed Description

template<typename T>
class dart::NumbersKeyValueTrait< T >

Definition at line 385 of file hash_map.h.

Member Typedef Documentation

◆ Key

template<typename T >
typedef intptr_t dart::NumbersKeyValueTrait< T >::Key

Definition at line 388 of file hash_map.h.

◆ Pair

template<typename T >
typedef T dart::NumbersKeyValueTrait< T >::Pair

Definition at line 389 of file hash_map.h.

◆ Value

template<typename T >
typedef T dart::NumbersKeyValueTrait< T >::Value

Definition at line 387 of file hash_map.h.

Member Function Documentation

◆ Hash()

template<typename T >
static uword dart::NumbersKeyValueTrait< T >::Hash ( Key  key)
inlinestatic

Definition at line 393 of file hash_map.h.

393{ return key; }

◆ IsKeyEqual()

template<typename T >
static bool dart::NumbersKeyValueTrait< T >::IsKeyEqual ( Pair  kv,
Key  key 
)
inlinestatic

Definition at line 394 of file hash_map.h.

394{ return kv.first() == key; }

◆ KeyOf()

template<typename T >
static intptr_t dart::NumbersKeyValueTrait< T >::KeyOf ( Pair  kv)
inlinestatic

Definition at line 391 of file hash_map.h.

391{ return kv.first(); }

◆ ValueOf()

template<typename T >
static T dart::NumbersKeyValueTrait< T >::ValueOf ( Pair  kv)
inlinestatic

Definition at line 392 of file hash_map.h.

392{ return kv; }

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