ROSE 0.11.145.147
|
experimental class for returning non-null pointers
Definition at line 119 of file sageGeneric.h.
#include <sageInterface/sageGeneric.h>
Public Member Functions | |
NotNull (T *p) | |
standard constructor testing that p is not nullptr | |
NotNull (const NotNull &)=default | |
NotNull & | operator= (const NotNull &)=default |
template<class U , bool = EnableConversion<U*,T*>::value> | |
NotNull (NotNull< U > nn) | |
converting ctor for derived types and non-const versions of T | |
T & | operator* () const |
dereference operator returns reference to object | |
T * | operator-> () const |
arrow operator returns pointer to object | |
operator T* () const | |
implicit conversion operator | |
T * | pointer () const |
explicit conversion operator | |
|
inline |
standard constructor testing that p is not nullptr
p | a not-null pointer |
Definition at line 125 of file sageGeneric.h.
|
inline |
converting ctor for derived types and non-const versions of T
Definition at line 140 of file sageGeneric.h.
|
inline |
dereference operator returns reference to object
Definition at line 145 of file sageGeneric.h.
|
inline |
arrow operator returns pointer to object
Definition at line 148 of file sageGeneric.h.
|
inline |
implicit conversion operator
Definition at line 151 of file sageGeneric.h.
|
inline |
explicit conversion operator
Definition at line 154 of file sageGeneric.h.