class Geo GeoAutoReleasePtr

This is the documentation for Enlighten.

class Geo GeoAutoReleasePtr

template<class T>
class Geo::GeoAutoReleasePtr

    └>Geo::GeoAutoPtr< T, Geo::GeoReleaseDestructor< T > >
        └>Geo::GeoReleaseDestructor< T >

Given the lack of a template typedef, and how common it is to want a GeoAutoPtr with Release dtor, adding a new class to provide this destruction policy by default.

Functions

Name

Description

Name

Description

~GeoAutoPtr()

Destructor - Delete the internal object.

Delete()

Explicitly delete the internal object.

Detach()

Release ownership of the internal object and return it to the client.

GeoAutoPtr(GeoAutoPtr< TOther, DOther > &)

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.

GeoAutoPtr(GeoAutoPtr< TOther, DOther > &&)

Move constructor.

GeoAutoPtr(GeoAutoPtr &&)

Move constructor.

GeoAutoPtr(GeoAutoPtr< T, D > &)

Take ownership of the payload of other GeoAutoPtr.

GeoAutoPtr(T *)

Take ownership of the raw-ptr obj. Explicit so that you don't unknowingly change ownership.

GeoAutoReleasePtr(T *)

Take ownership of the raw-ptr obj. Explicit so that you don't unknowingly change ownership.

GeoAutoReleasePtr(GeoAutoReleasePtr< T > &)

Take ownership of the payload of other GeoAutoReleasePtr.

GeoAutoReleasePtr(GeoAutoReleasePtr< Other > &&)

Move constructor.

GeoAutoReleasePtr(GeoAutoReleasePtr< T > &&)

Move constructor.

GeoAutoReleasePtr(GeoAutoReleasePtr< Other > &)

construct by assuming pointer from rhs

GetPtr()

Explicitly return the contained type.

operator bool_type()

Is the object valid?

operator GeoAutoPtr< TOther, DOther >()

Convert to GeoAutoPtr of compatible type.

operator!=(const GeoAutoPtr &)

Equivalence/comparison tests.

operator*()

Allow dereferencing of the contained type.

operator[](Geo::s32)

Allow array referencing of the contained type.

operator<(const GeoAutoPtr &)

Equivalence/comparison tests.

operator=(GeoAutoReleasePtr< Other > &&)

Move assignment operator.

operator=(GeoAutoPtr< T, D > &)

Support assignment (modifying other object)

operator=(GeoAutoPtr< T, D > &&)

Move assignment operator.

operator=(GeoAutoReleasePtr< T > &&)

Move assignment operator.

operator==(const GeoAutoPtr &)

Equivalence/comparison tests.

operator>(const GeoAutoPtr &)

Equivalence/comparison tests.

operator->()

Access members of the owned object.

Reset(T *)

Hold new object, destroying current.



Geo::GeoAutoPtr< T, D >::~GeoAutoPtr


public: ~GeoAutoPtr()


Destructor - Delete the internal object.