Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
dart::kernel::UriToSourceTableTrait Struct Reference

#include <kernel_loader.h>

Public Types

typedef UriToSourceTableEntryValue
 
typedef const UriToSourceTableEntryKey
 
typedef UriToSourceTableEntryPair
 

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

Definition at line 155 of file kernel_loader.h.

Member Typedef Documentation

◆ Key

Definition at line 157 of file kernel_loader.h.

◆ Pair

Definition at line 158 of file kernel_loader.h.

◆ Value

Definition at line 156 of file kernel_loader.h.

Member Function Documentation

◆ Hash()

static uword dart::kernel::UriToSourceTableTrait::Hash ( Key  key)
inlinestatic

Definition at line 164 of file kernel_loader.h.

164{ return key->uri->Hash(); }

◆ IsKeyEqual()

static bool dart::kernel::UriToSourceTableTrait::IsKeyEqual ( Pair  kv,
Key  key 
)
inlinestatic

Definition at line 166 of file kernel_loader.h.

166 {
167 // Only compare uri.
168 return kv->uri->CompareTo(*key->uri) == 0;
169 }

◆ KeyOf()

static Key dart::kernel::UriToSourceTableTrait::KeyOf ( Pair  kv)
inlinestatic

Definition at line 160 of file kernel_loader.h.

160{ return kv; }

◆ ValueOf()

static Value dart::kernel::UriToSourceTableTrait::ValueOf ( Pair  kv)
inlinestatic

Definition at line 162 of file kernel_loader.h.

162{ return kv; }

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