lib
Kross::Api::List Class Reference
#include <list.h>
Inheritance diagram for Kross::Api::List:

Detailed Description
The List class implementates Value to handle lists and collections.
Definition at line 36 of file list.h.
Public Types | |
typedef KSharedPtr< List > | Ptr |
Public Member Functions | |
List (QValueList< Object::Ptr > value=QValueList< Object::Ptr >(), const QString &name="list") | |
virtual | ~List () |
virtual const QString | getClassName () const |
virtual const QString | toString () |
Object::Ptr | item (uint idx) |
uint | count () |
void | append (Object::Ptr object) |
Friends | |
class | Value< List, QValueList< Object::Ptr > > |
Member Typedef Documentation
typedef KSharedPtr<List> Kross::Api::List::Ptr |
Constructor & Destructor Documentation
List::List | ( | QValueList< Object::Ptr > | value = QValueList< Object::Ptr >() , |
|
const QString & | name = "list" | |||
) |
Member Function Documentation
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.
uint List::count | ( | ) |
const QString List::getClassName | ( | ) | const [virtual] |
Object::Ptr List::item | ( | uint | idx | ) |
const QString List::toString | ( | ) | [virtual] |
- Returns:
- a string representation of the whole list.
- See also:
- Kross::Api::Object::toString()
Reimplemented from Kross::Api::Object.
The documentation for this class was generated from the following files: