Wraps a slot that may not be present.
More...
#include <slotarg.h>
List of all members.
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.
|
Detailed Description
template<typename T>
class cwidget::util::slotarg< T >
Wraps a slot that may not be present.
- Template Parameters:
-
| T | The slot type that is wrapped by this argument. |
See also cwidget::util::arg, cwidget::util::slot0arg.
Constructor & Destructor Documentation
Create a slotarg from an optional slot.
- Parameters:
-
| slot | The slot to store, or NULL to store no slot. |
Create a slotarg from an existing slot.
Member Function Documentation
Return true if this argument stores a slot.
template<typename T>
template<typename S >
Convert between compatible slotarg types.
Return the encapsulated slot, if any.
Return the encapsulated slot, if any.
The documentation for this class was generated from the following file: