This is the documentation for Enlighten.
class Geo GeoRefPtr
template<typename, typename>
class Geo::GeoRefPtr
└>D
A value type to take ownership of a raw object allocated on the heap and track a reference count between multiple instances of this class.
The raw object is destroyed when the last reference is released. Virtually identical to std::shared_ptr, but with policy-based destruction semantics.
Functions
Name | Description |
|---|---|
Destructor - Delete the internal object. | |
How many pointers share this resource? | |
Handle reduction of the reference count. | |
Take ownership of the raw ptr. Explicit so that you don't unknowingly change ownership. | |
Move constructor. | |
Increase ownership of the payload of other GeoRefPtr. | |
Increase ownership of the payload of other GeoRefPtr, given a different contained type Theoretically could write a destruction policy that accepted matches to other policies, but none implemented to date. | |
Explicitely return the contained type. | |
Handle increase of the reference count. | |
Is the object valid? | |
Convert to GeoRefPtr of compatible type. | |
Equivalence/comparison tests. | |
Allow dereferencing of the contained type. | |
Allow array referencing of the contained type. | |
Equivalence/comparison tests. | |
Support assignment (modifying other object) | |
Move assignment operator. | |
Equivalence/comparison tests. | |
Equivalence/comparison tests. | |
Access members of the owned object. | |
Hold new object, reducing count of current (possibly deleting) | |
Is the object unique? |
Geo::GeoRefPtr< T, D >::~GeoRefPtr
public: ~GeoRefPtr()
Destructor - Delete the internal object.
Geo::s32 Geo::GeoRefPtr< T, D >::Count
public: Geo::s32 Count() const
How many pointers share this resource?