Zen
A cross-platform functional programming language

any::impl< T > Class Template Reference

Implementation template for all 'any' types. More...

#include <zbl.hpp>

Inheritance diagram for any::impl< T >:
any::base

List of all members.

Public Member Functions

 impl (const T &val)
 Default constructor.
const T & get () const
 Returns the stored value.
virtual baseclone () 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

_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:
valThe value

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:
osOutput stream

Implements any::base.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines