cwidget 0.5.16
|
Wraps a slot that may not be present. More...
#include <slotarg.h>
Public Member Functions | |
slotarg (const T *slot) | |
Create a slotarg from an optional slot. | |
slotarg (const T &slot) | |
Create a slotarg from an existing slot. | |
template<typename S > | |
operator slotarg< S > () const | |
Convert between compatible slotarg types. | |
operator bool () const | |
Return true if this argument stores a slot. | |
const T & | operator* () const |
Return the encapsulated slot, if any. | |
T & | operator* () |
Return the encapsulated slot, if any. |
Wraps a slot that may not be present.
T | The slot type that is wrapped by this argument. |
See also cwidget::util::arg, cwidget::util::slot0arg.
cwidget::util::slotarg< T >::slotarg | ( | const T * | slot | ) | [inline] |
Create a slotarg from an optional slot.
slot | The slot to store, or NULL to store no slot. |
cwidget::util::slotarg< T >::slotarg | ( | const T & | slot | ) | [inline] |
Create a slotarg from an existing slot.
cwidget::util::slotarg< T >::operator bool | ( | ) | const [inline] |
Return true if this argument stores a slot.
cwidget::util::slotarg< T >::operator slotarg< S > | ( | ) | const [inline] |
Convert between compatible slotarg types.
const T& cwidget::util::slotarg< T >::operator* | ( | ) | const [inline] |
Return the encapsulated slot, if any.
T& cwidget::util::slotarg< T >::operator* | ( | ) | [inline] |
Return the encapsulated slot, if any.