Implementation template for all 'any' types.
More...
#include <zbl.hpp>
List of all members.
Public Member Functions |
| impl (const T &val) |
| Default constructor.
|
const T & | get () const |
| Returns the stored value.
|
virtual base * | clone () const |
| Create a clone of this instance.
|
virtual void | write (z::stream &os) const |
| Write to stream.
|
virtual QVariant | getVar () const |
| Create a QVariant from this instance.
|
Private Attributes |
T | _val |
| The value.
|
Detailed Description
template<typename T>
class z::any::impl< T >
Implementation template for all 'any' types.
Constructor & Destructor Documentation
impl |
( |
const T & |
val | ) |
[inline] |
Default constructor.
- Parameters:
-
Member Function Documentation
virtual base* clone |
( |
| ) |
const [inline, virtual] |
Create a clone of this instance.
- Returns:
- The clone instance
Implements any::base.
const T& get |
( |
| ) |
const [inline] |
Returns the stored value.
- Returns:
- The value
virtual QVariant getVar |
( |
| ) |
const [inline, virtual] |
Create a QVariant from this instance.
- Returns:
- The QVariant
Implements any::base.
virtual void write |
( |
z::stream & |
os | ) |
const [inline, virtual] |
Write to stream.
- Parameters:
-
Implements any::base.
The documentation for this class was generated from the following file:
- /home/renji/Data/projects/zenlang/sources/zbl/zbl.hpp