Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ObjectLocator Class Reference
Inheritance diagram for dart::ObjectLocator:
dart::ObjectVisitor

Public Member Functions

 ObjectLocator (IsolateGroupReloadContext *context)
 
void VisitObject (ObjectPtr obj) override
 
intptr_t count ()
 
- Public Member Functions inherited from dart::ObjectVisitor
 ObjectVisitor ()
 
virtual ~ObjectVisitor ()
 
virtual void VisitObject (ObjectPtr obj)=0
 

Detailed Description

Definition at line 71 of file isolate_reload.cc.

Constructor & Destructor Documentation

◆ ObjectLocator()

dart::ObjectLocator::ObjectLocator ( IsolateGroupReloadContext context)
inlineexplicit

Definition at line 73 of file isolate_reload.cc.

74 : context_(context), count_(0) {}

Member Function Documentation

◆ count()

intptr_t dart::ObjectLocator::count ( )
inline

Definition at line 86 of file isolate_reload.cc.

86{ return count_; }

◆ VisitObject()

void dart::ObjectLocator::VisitObject ( ObjectPtr  obj)
inlineoverridevirtual

Implements dart::ObjectVisitor.

Definition at line 76 of file isolate_reload.cc.

76 {
77 InstanceMorpher* morpher =
78 context_->instance_morpher_by_cid_.LookupValue(obj->GetClassId());
79 if (morpher != nullptr) {
80 morpher->AddObject(obj);
81 count_++;
82 }
83 }
KeyValueTrait::Value LookupValue(typename KeyValueTrait::Key key) const
Definition: hash_map.h:159

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