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

#include <value.h>

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

Public Member Functions

 Value (V value)
 
virtual ~Value ()
 
V & getValue ()
 
- Public Member Functions inherited from Kross::Api::Object
 Object ()
 
virtual ~Object ()
 
virtual const TQString getClassName () const =0
 
virtual const TQString toString ()
 
virtual Object::Ptr call (const TQString &name, TDESharedPtr< List > arguments)
 
virtual TQStringList getCalls ()
 

Static Public Member Functions

template<typename TYPE >
static Object::Ptr toObject (TYPE t)
 
- Static Public Member Functions inherited from Kross::Api::Object
template<class T >
static T * fromObject (Object::Ptr object)
 
template<typename TYPE >
static Object::Ptr toObject (TYPE t)
 

Additional Inherited Members

- Public Types inherited from Kross::Api::Object
typedef TDESharedPtr< Object > Ptr
 

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.

Constructor & Destructor Documentation

◆ Value()

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

Constructor.

Parameters
valueThe initial value this Value has.

Definition at line 48 of file value.h.

◆ ~Value()

template<class T , class V >
virtual Kross::Api::Value< T, V >::~Value ( )
inlinevirtual

Destructor.

Definition at line 55 of file value.h.

Member Function Documentation

◆ getValue()

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.

◆ toObject()

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

Definition at line 68 of file value.h.


The documentation for this class was generated from the following file: