Abstract base class for implementing pointer objects. More...
#include <Pointer.hpp>
Public Member Functions | |
virtual T * | get ()=0 |
obtains the raw address of the variable this points to | |
virtual const T * | get () const =0 |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
operator bool () const | |
returns true iff this is not null | |
T & | operator* () |
obtains a reference to the object this points to | |
T * | operator-> () |
accesses the members of the object this points to | |
T & | value () |
obtains a reference to the object this points to | |
const T & | operator* () const |
obtains a reference to the object this points to | |
const T * | operator-> () const |
accesses the members of the object this points to | |
const T & | value () const |
obtains a reference to the object this points to | |
Abstract base class for implementing pointer objects.
Derived classes must implement a get()
member function that returns a raw pointer, and Pointer
implements the rest of the usual pointer interface semantics in terms of get()
.
|
pure virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implemented in hexed::Mortal_ptr< T >.
|
pure virtual |
obtains the raw address of the variable this
points to
Implemented in hexed::Mortal_ptr< T >.
|
inline |
obtains a reference to the object this
points to
undefined behavior if this
is null
|
inline |
obtains a reference to the object this
points to
undefined behavior if this
is null
|
inline |
accesses the members of the object this
points to
undefined behavior if this
is null
|
inline |
accesses the members of the object this
points to
undefined behavior if this
is null
|
inline |
obtains a reference to the object this
points to
throws an exception if this
is null
|
inline |
obtains a reference to the object this
points to
throws an exception if this
is null