#include <Link.h>
Class to hold 0-or-1 pointer. The interface is similar to std::vector (size/[]/begin/end), plus an automatic conversion to one pointer. More...
Class to hold 0-or-1 pointer. The interface is similar to std::vector (size/[]/begin/end), plus an automatic conversion to one pointer.
Protected Attributes | |
bool | isEmpty {true} |
TPtr | elems [1] |
Public Member Functions | |
SinglePtr () | |
const_iterator | begin () const |
const_iterator | end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
std::size_t | size () const |
void | resize (size_t size) |
bool | empty () const |
void | clear () |
const TPtr & | get () const |
TPtr & | get () |
void | add (TDestPtr v) |
void | addBegin (TDestPtr v) |
const TPtr & | operator[] (std::size_t i) const |
TPtr & | operator[] (std::size_t i) |
const TPtr & | operator() (std::size_t i) const |
TPtr & | operator() (std::size_t i) |
operator T* () const | |
T * | operator-> () const |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |