Base Framework
|
Lifetime automation pointer. More...
#include <base/mem/Lifetime.h>
Inherits NotCopyable.
Public Member Functions | |
Lifetime (TYPE *_object) | |
TYPE & | operator* () |
const TYPE & | operator* () const noexcept |
TYPE * | operator-> () |
const TYPE * | operator-> () const |
~Lifetime () | |
Lifetime automation pointer.
Automation pointer which guarantees a valid pointer (not 0). The object is destroyed when the automation pointer falls out of scope.
Initializes the automation pointer.
object | The object pointer to be automated. |
Destroys the automation pointer (and the object).
|
inline |
Returns mutable object.
|
inlinenoexcept |
Returns constant object.
|
inline |
Returns object for modifying access.
|
inline |
Returns object for non-modifying access.