Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dart::CanonicalInstanceKey Class Reference

#include <canonical_tables.h>

Public Member Functions

 CanonicalInstanceKey (const Instance &key)
 
bool Matches (const Instance &obj) const
 
uword Hash () const
 

Public Attributes

const Instancekey_
 

Detailed Description

Definition at line 391 of file canonical_tables.h.

Constructor & Destructor Documentation

◆ CanonicalInstanceKey()

dart::CanonicalInstanceKey::CanonicalInstanceKey ( const Instance key)
explicit

Definition at line 80 of file canonical_tables.cc.

80 : key_(key) {
81 ASSERT(!(key.IsString() || key.IsAbstractType()));
82}
#define ASSERT(E)

Member Function Documentation

◆ Hash()

uword dart::CanonicalInstanceKey::Hash ( ) const

Definition at line 93 of file canonical_tables.cc.

93 {
94 return key_.CanonicalizeHash();
95}
virtual uint32_t CanonicalizeHash() const
Definition object.cc:20357

◆ Matches()

bool dart::CanonicalInstanceKey::Matches ( const Instance obj) const

Definition at line 84 of file canonical_tables.cc.

84 {
85 ASSERT(!(obj.IsString() || obj.IsAbstractType()));
86 if (key_.CanonicalizeEquals(obj)) {
87 ASSERT(obj.IsCanonical());
88 return true;
89 }
90 return false;
91}
virtual bool CanonicalizeEquals(const Instance &other) const
Definition object.cc:20300

Member Data Documentation

◆ key_

const Instance& dart::CanonicalInstanceKey::key_

Definition at line 396 of file canonical_tables.h.


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