Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::IsolateData Class Reference

#include <isolate_data.h>

Public Member Functions

 IsolateData (IsolateGroupData *isolate_group_data)
 
 ~IsolateData ()
 
IsolateGroupDataisolate_group_data () const
 
void UpdatePackagesFile (const char *packages_file)
 
bool HasLoader () const
 
Loaderloader () const
 
void set_loader (Loader *loader)
 
const char * packages_file () const
 

Detailed Description

Definition at line 123 of file isolate_data.h.

Constructor & Destructor Documentation

◆ IsolateData()

dart::bin::IsolateData::IsolateData ( IsolateGroupData isolate_group_data)
explicit

Definition at line 41 of file isolate_data.cc.

42 : isolate_group_data_(isolate_group_data),
43 loader_(nullptr),
44 packages_file_(nullptr) {
45 if (isolate_group_data->packages_file_ != nullptr) {
46 packages_file_ = Utils::StrDup(isolate_group_data->packages_file_);
47 }
48}
static char * StrDup(const char *s)
IsolateGroupData * isolate_group_data() const
Definition: isolate_data.h:128

◆ ~IsolateData()

dart::bin::IsolateData::~IsolateData ( )

Definition at line 50 of file isolate_data.cc.

50 {
51 free(packages_file_);
52 packages_file_ = nullptr;
53}

Member Function Documentation

◆ HasLoader()

bool dart::bin::IsolateData::HasLoader ( ) const
inline

Definition at line 139 of file isolate_data.h.

139{ return loader_ != nullptr; }

◆ isolate_group_data()

IsolateGroupData * dart::bin::IsolateData::isolate_group_data ( ) const
inline

Definition at line 128 of file isolate_data.h.

128{ return isolate_group_data_; }

◆ loader()

Loader * dart::bin::IsolateData::loader ( ) const
inline

Definition at line 140 of file isolate_data.h.

140 {
141 ASSERT(loader_ != nullptr);
142 return loader_;
143 }
#define ASSERT(E)

◆ packages_file()

const char * dart::bin::IsolateData::packages_file ( ) const
inline

Definition at line 149 of file isolate_data.h.

149{ return packages_file_; }

◆ set_loader()

void dart::bin::IsolateData::set_loader ( Loader loader)
inline

Definition at line 144 of file isolate_data.h.

144 {
145 ASSERT((loader_ == nullptr) || (loader == nullptr));
146 loader_ = loader;
147 }
Loader * loader() const
Definition: isolate_data.h:140

◆ UpdatePackagesFile()

void dart::bin::IsolateData::UpdatePackagesFile ( const char *  packages_file)
inline

Definition at line 130 of file isolate_data.h.

130 {
131 if (packages_file != nullptr) {
132 free(packages_file_);
133 packages_file_ = nullptr;
134 }
135 packages_file_ = Utils::StrDup(packages_file);
136 }
const char * packages_file() const
Definition: isolate_data.h:149

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