lib

Kross::Api::Value< T, V > Class Template Reference

#include <value.h>

Inheritance diagram for Kross::Api::Value< T, V >:

Kross::Api::Object Kross::Api::Dict Kross::Api::List Kross::Api::Variant Kross::Api::ListT< OBJECT > List of all members.

Detailed Description

template<class T, class V>
class Kross::Api::Value< T, V >

Template class to represent values.

Classes like Variant or List are implementing this class. That way we have a common base for all kind of values.

Definition at line 38 of file value.h.


Public Member Functions

 Value (V value)
virtual ~Value ()
V & getValue ()

Static Public Member Functions

template<typename TYPE>
static Object::Ptr toObject (TYPE t)

Constructor & Destructor Documentation

template<class T, class V>
Kross::Api::Value< T, V >::Value ( value  )  [inline]

Constructor.

Parameters:
value The initial value this Value has.

Definition at line 48 of file value.h.

template<class T, class V>
virtual Kross::Api::Value< T, V >::~Value (  )  [inline, virtual]

Destructor.

Definition at line 55 of file value.h.


Member Function Documentation

template<class T, class V>
V& Kross::Api::Value< T, V >::getValue (  )  [inline]

Return the value.

Returns:
The value this Value-class holds.

Definition at line 64 of file value.h.

template<class T, class V>
template<typename TYPE>
static Object::Ptr Kross::Api::Value< T, V >::toObject ( TYPE  t  )  [inline, static]

This method got used by the ProxyFunction classes to translate an unknown TYPE to a Object instance.

Classes like Value or ListT or Class are overwriting this method to transparently translate these passed type while this method just assumes that the type is already a Object instance.

Reimplemented from Kross::Api::Object.

Reimplemented in Kross::Api::List, and Kross::Api::ListT< OBJECT >.

Definition at line 68 of file value.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys