Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::kernel::Mapping< VmType > Class Template Reference

#include <kernel_loader.h>

Public Member Functions

bool Lookup (intptr_t canonical_name, VmType **handle)
 
void Insert (intptr_t canonical_name, VmType *object)
 

Detailed Description

template<typename VmType>
class dart::kernel::Mapping< VmType >

Definition at line 64 of file kernel_loader.h.

Member Function Documentation

◆ Insert()

template<typename VmType >
void dart::kernel::Mapping< VmType >::Insert ( intptr_t  canonical_name,
VmType *  object 
)
inline

Definition at line 75 of file kernel_loader.h.

75 {
76 map_.Insert(canonical_name, object);
77 }
void Insert(const Key &key, const Value &value)
Definition hash_map.h:543

◆ Lookup()

template<typename VmType >
bool dart::kernel::Mapping< VmType >::Lookup ( intptr_t  canonical_name,
VmType **  handle 
)
inline

Definition at line 66 of file kernel_loader.h.

66 {
67 typename MapType::Pair* pair = map_.LookupPair(canonical_name);
68 if (pair != nullptr) {
69 *handle = pair->value;
70 return true;
71 }
72 return false;
73 }
Pair * LookupPair(const Key &key) const
Definition hash_map.h:558
IntKeyRawPointerValueTrait< VmType * >::Pair Pair
Definition hash_map.h:541

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