This is the documentation for Enlighten.
class Geo GeoUniquePtr
template<typename, typename>
class Geo::GeoUniquePtr
└>D └>Geo::NonCopyable
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. | |
Take ownership of the raw-ptr obj. Explicit so that you don't unknowingly change ownership. | |
Move constructor. | |
Explicitly return the contained type. | |
Is the object valid? | |
Equivalence/comparison tests. | |
Allow dereferencing of the contained type. | |
Allow array referencing of the contained type. | |
Equivalence/comparison tests. | |
Move assignment operator. | |
Equivalence/comparison tests. | |
Equivalence/comparison tests. | |
Access members of the owned object. | |
Hold new object, destroying current. |
Friends
Name | Description |
|---|---|
friend void Swap(GeoUniquePtr &a, GeoUniquePtr &b) | Specialized swap. |
Geo::GeoUniquePtr< T, D >::~GeoUniquePtr
public: ~GeoUniquePtr()
Destructor - Delete the internal object.
void Geo::GeoUniquePtr< T, D >::Delete
public: void Delete()
Explicitly delete the internal object.
T* Geo::GeoUniquePtr< T, D >::Detach
public: T * Detach()