This is the documentation for Enlighten.
class Geo GeoAutoPtr
template<typename, typename>
class Geo::GeoAutoPtr
└>D
A value type to take ownership of a raw object allocated on the heap and bind its life-time to the scope of this class.
Virtually identical to std::auto_ptr, but with policy-based destruction semantics.
Functions
Name | Description |
|---|---|
Destructor - Delete the internal object. | |
Explicitly delete the internal object. | |
Release ownership of the internal object and return it to the client. | |
Move constructor. | |
Construct by assuming pointer from rhs, given a different contained type Theoretically could write a destruction policy that accepted matches to other policies, but none implemented to date. | |
Move constructor. | |
Take ownership of the raw-ptr obj. Explicit so that you don't unknowingly change ownership. | |
Take ownership of the payload of other GeoAutoPtr. | |
Explicitly return the contained type. | |
Is the object valid? | |
Convert to GeoAutoPtr of compatible type. | |
Equivalence/comparison tests. | |
Allow dereferencing of the contained type. | |
Allow array referencing of the contained type. | |
Equivalence/comparison tests. | |
Move assignment operator. | |
Support assignment (modifying other object) | |
Equivalence/comparison tests. | |
Equivalence/comparison tests. | |
Access members of the owned object. | |
Hold new object, destroying current. |
Geo::GeoAutoPtr< T, D >::~GeoAutoPtr
public: ~GeoAutoPtr()
Destructor - Delete the internal object.
void Geo::GeoAutoPtr< T, D >::Delete
public: void Delete()
Explicitly delete the internal object.