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

Public Member Functions

 Resource ()
 
 Resource (int id_)
 
 Resource (const Resource &r)
 
Resourceoperator= (const Resource &r)
 
 ~Resource ()
 

Public Attributes

int id
 

Static Public Attributes

static int copies = 0
 

Detailed Description

Definition at line 44 of file fixed_cache_test.cc.

Constructor & Destructor Documentation

◆ Resource() [1/3]

dart::Resource::Resource ( )
inline

Definition at line 45 of file fixed_cache_test.cc.

45: id(0) { copies++; }

◆ Resource() [2/3]

dart::Resource::Resource ( int  id_)
inlineexplicit

Definition at line 46 of file fixed_cache_test.cc.

46: id(id_) { copies++; }

◆ Resource() [3/3]

dart::Resource::Resource ( const Resource r)
inline

Definition at line 48 of file fixed_cache_test.cc.

48 {
49 id = r.id;
50 copies++;
51 }

◆ ~Resource()

dart::Resource::~Resource ( )
inline

Definition at line 58 of file fixed_cache_test.cc.

58{ copies--; }

Member Function Documentation

◆ operator=()

Resource & dart::Resource::operator= ( const Resource r)
inline

Definition at line 53 of file fixed_cache_test.cc.

53 {
54 id = r.id;
55 return *this;
56 }

Member Data Documentation

◆ copies

int dart::Resource::copies = 0
static

Definition at line 61 of file fixed_cache_test.cc.

◆ id

int dart::Resource::id

Definition at line 60 of file fixed_cache_test.cc.


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