Zen
A cross-platform functional programming language

key Class Reference

Intrinsic key type. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 key ()
 Default constructor.
 key (const any &val)
 Default constructor.
 key (const key &src)
 Copy constructor.
keyoperator= (const z::any &rhs)
 Set the value of the key from an "any" value.
template<typename T >
keyoperator= (const T &rhs)
 Set the value of the key from a type other than 'any'.
const anyget () const
 Get the value of the key.
uint getHash () const
 Get hash value of contained type.

Private Attributes

z::any _val
 The value.

Detailed Description

Intrinsic key type.


Constructor & Destructor Documentation

key ( const any val) [inline]

Default constructor.

Parameters:
valThe value
key ( const key src) [inline]

Copy constructor.

Parameters:
srcThe value

Member Function Documentation

const any& get ( ) const [inline]

Get the value of the key.

Returns:
The value of the key
uint getHash ( ) const [inline]

Get hash value of contained type.

Returns:
Hash value

Todo:
Show type name in error string

key& operator= ( const z::any rhs) [inline]

Set the value of the key from an "any" value.

Parameters:
rhsThe value to set
Returns:
Self reference
key& operator= ( const T &  rhs) [inline]

Set the value of the key from a type other than 'any'.

Parameters:
rhsThe value to set
Returns:
Self reference

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