Public Types |
Public Member Functions |
Static Public Member Functions |
Friends |
List of all members
Kross::Api::List Class Reference
#include <list.h>
Inheritance diagram for Kross::Api::List:
Public Types | |
| typedef TDESharedPtr< List > | Ptr |
| Public Types inherited from Kross::Api::Object | |
| typedef TDESharedPtr< Object > | Ptr |
Public Member Functions | |
| List (TQValueList< Object::Ptr > value=TQValueList< Object::Ptr >()) | |
| virtual | ~List () |
| virtual const TQString | getClassName () const |
| virtual const TQString | toString () |
| Object::Ptr | item (uint idx, Object *defaultobject=0) |
| uint | count () |
| void | append (Object::Ptr object) |
| Public Member Functions inherited from Kross::Api::Value< List, TQValueList< Object::Ptr > > | |
| Value (TQValueList< Object::Ptr > value) | |
| virtual | ~Value () |
| TQValueList< 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 () |
Static Public Member Functions | |
| template<typename TYPE> | |
| static Object::Ptr | toObject (TYPE t) |
| Static Public Member Functions inherited from Kross::Api::Value< List, TQValueList< 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) |
Friends | |
| class | Value< List, TQValueList< Object::Ptr > > |
Detailed Description
Member Typedef Documentation
◆ Ptr
| typedef TDESharedPtr<List> Kross::Api::List::Ptr |
Constructor & Destructor Documentation
◆ List()
| List::List | ( | TQValueList< Object::Ptr > | value = TQValueList<Object::Ptr>() | ) |
◆ ~List()
Member Function Documentation
◆ append()
| void List::append | ( | Object::Ptr | object | ) |
Append an Kross::Api::Object to the list.
- Parameters
-
object The Kross::Api::Object instance to append to this list.
◆ count()
| uint List::count | ( | ) |
◆ getClassName()
|
virtual |
See.
Implements Kross::Api::Object.
◆ item()
| Object::Ptr List::item | ( | uint | idx, |
| Object * | defaultobject = 0 ) |
Return the Object with defined index from the TQValueList this list holds.
- Exceptions
-
TypeException If index is out of bounds.
- Parameters
-
idx The TQValueList-index. defaultobject The default Object which should be used if there exists no item with such an index. This Object instance will be returned if not NULL and if the index is out of bounds. If its NULL a TypeException will be thrown.
- Returns
- The Object instance.
◆ toObject()
template<typename TYPE>
|
inlinestatic |
◆ toString()
|
virtual |
- Returns
- a string representation of the whole list.
- See also
- Kross::Api::Object::toString()
Reimplemented from Kross::Api::Object.
Friends And Related Symbol Documentation
◆ Value< List, TQValueList< Object::Ptr > >
|
friend |
The documentation for this class was generated from the following files:
