lib

Kross::Api::Dict Class Reference

#include <dict.h>

Inheritance diagram for Kross::Api::Dict:
Kross::Api::Value< List, TQMap< TQString, Object::Ptr > > Kross::Api::Object

Public Member Functions

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

Friends

class Value< List, TQMap< TQString, Object::Ptr > >

Additional Inherited Members

Public Types inherited from Kross::Api::Object
typedef TDESharedPtr< Object > Ptr
Static Public Member Functions inherited from Kross::Api::Value< List, TQMap< TQString, Object::Ptr > >
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)

Detailed Description

The Dict class implementates Value to handle key=value base dictonaries/maps.

Definition at line 37 of file dict.h.

Constructor & Destructor Documentation

◆ Dict()

Dict::Dict ( const TQMap< TQString, Object::Ptr > value)
explicit

Constructor.

Parameters
valueThe map of Object instances accessible via there string-identifier that is in this Dict intialy.

Definition at line 25 of file dict.cpp.

◆ ~Dict()

Dict::~Dict ( )
virtual

Destructor.

Definition at line 30 of file dict.cpp.

Member Function Documentation

◆ getClassName()

const TQString Dict::getClassName ( ) const
virtual
See also
Kross::Api::Object::getClassName()

Implements Kross::Api::Object.

Definition at line 34 of file dict.cpp.

◆ toString()

const TQString Dict::toString ( )
virtual
Returns
a string representation of the whole dictonary.
See also
Kross::Api::Object::toString()

Reimplemented from Kross::Api::Object.

Definition at line 39 of file dict.cpp.

◆ Value< List, TQMap< TQString, Object::Ptr > >

friend class Value< List, TQMap< TQString, Object::Ptr > >
friend

Definition at line 37 of file dict.h.


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