Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Runtime::GCObject Struct Reference

#include <RuntimePrivate.h>

Inheritance diagram for Runtime::GCObject:
Collaboration diagram for Runtime::GCObject:

Public Member Functions

 GCObject (ObjectKind inKind)
 
 ~GCObject () override
 
- Public Member Functions inherited from Runtime::ObjectInstance
 ObjectInstance (IR::ObjectKind inKind)
 
virtual ~ObjectInstance ()
 

Additional Inherited Members

- Public Attributes inherited from Runtime::ObjectInstance
const IR::ObjectKind kind
 

Detailed Description

Definition at line 37 of file RuntimePrivate.h.

Constructor & Destructor Documentation

◆ GCObject()

Runtime::GCObject::GCObject ( ObjectKind inKind)

Definition at line 26 of file ObjectGC.cpp.

26 : ObjectInstance(inKind)
27 {
28 // Add the object to the global array.
29 GCGlobals::get().allObjects.insert(this);
30 }
static GCGlobals & get()
Definition ObjectGC.cpp:16
std::set< GCObject * > allObjects
Definition ObjectGC.cpp:14
ObjectInstance(IR::ObjectKind inKind)
Definition Runtime.h:82
Here is the call graph for this function:

◆ ~GCObject()

Runtime::GCObject::~GCObject ( )
override

Definition at line 32 of file ObjectGC.cpp.

33 {
34 // Remove the object from the global array.
35 GCGlobals::get().allObjects.erase(this);
36 }
Here is the call graph for this function:

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