Honeycomb
0.1
Component-Model Framework
|
Specialization for references. More...
#include <Optional.h>
Public Member Functions | |
optional () | |
optional (T *rhs) | |
optional (optnull_t) | |
optional (const optional &rhs) | |
optional (optional &rhs) | |
optional (optional &&rhs) | |
template<class U > | |
optional (const optional< U > &rhs) | |
template<class U > | |
optional (optional< U > &rhs) | |
template<class U > | |
optional (optional< U > &&rhs) | |
template<class U > | |
optional (U &&rhs) | |
template<class U > | |
void | bind (U &&rhs) |
Bind wrapped reference to object. More... | |
template<class U > | |
void | bind (U *rhs) |
Bind wrapped reference from object pointer. Unbinds if pointer is null. More... | |
void | bind (nullptr_t) |
Unbinds object. More... | |
optional & | operator= (optnull_t) |
Unbinds object. More... | |
optional & | operator= (const optional &rhs) |
Assign wrapped object. More... | |
optional & | operator= (optional &rhs) |
optional & | operator= (optional &&rhs) |
template<class U > | |
optional & | operator= (const optional< U > &rhs) |
template<class U > | |
optional & | operator= (optional< U > &rhs) |
template<class U > | |
optional & | operator= (optional< U > &&rhs) |
template<class U > | |
optional & | operator= (U &&rhs) |
Assign object. Reference must be bound to an object before being assigned, this is asserted at runtime. More... | |
bool | operator== (optnull_t) const |
bool | operator!= (optnull_t) const |
const T & | operator* () const |
T & | operator* () |
const T * | operator-> () const |
T * | operator-> () |
operator const T & () const | |
operator T & () | |
operator bool () const | |
operator bool () | |
const T & | get () const |
T & | get () |
const T * | ptr () const |
T * | ptr () |
Friends | |
template<class T_ > | |
class | optional |
ostream & | operator<< (ostream &os, const optional &rhs) |
Specialization for references.
The wrapped reference must be bound before it can be assigned, either construct with an object ref/pointer or call bind(). All assignments operate on the bound object. Assigning to optnull or calling bind(nullptr) to will unbind the wrapped reference.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Bind wrapped reference to object.
Bind wrapped reference from object pointer. Unbinds if pointer is null.
|
inline |
Unbinds object.
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Unbinds object.
|
inline |
Assign wrapped object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Assign object. Reference must be bound to an object before being assigned, this is asserted at runtime.
|
inline |
|
inline |
|
inline |
|
friend |