libkdegames/kgame
KGamePropertyList< type > Class Template Reference
#include <kgamepropertylist.h>

Detailed Description
template<class type>
class KGamePropertyList< type >
Definition at line 34 of file kgamepropertylist.h.
Public Types | |
| typedef QListIterator< type > | Iterator |
Public Member Functions | |
| KGamePropertyList () | |
| KGamePropertyList (const KGamePropertyList< type > &a) | |
| uint | findIterator (Iterator me) |
| Iterator | insert (Iterator it, const type &d) |
| void | prepend (const type &d) |
| void | append (const type &d) |
| Iterator | erase (Iterator it) |
| Iterator | remove (Iterator it) |
| void | remove (const type &d) |
| void | clear () |
| void | load (QDataStream &s) |
| void | save (QDataStream &s) |
| void | command (QDataStream &stream, int msgid, bool isSender) |
Protected Member Functions | |
| void | extractProperty (const QByteArray &b) |
Member Typedef Documentation
| typedef QListIterator<type> KGamePropertyList< type >::Iterator |
Constructor & Destructor Documentation
| KGamePropertyList< type >::KGamePropertyList | ( | ) | [inline] |
Definition at line 42 of file kgamepropertylist.h.
| KGamePropertyList< type >::KGamePropertyList | ( | const KGamePropertyList< type > & | a | ) | [inline] |
Definition at line 46 of file kgamepropertylist.h.
Member Function Documentation
| uint KGamePropertyList< type >::findIterator | ( | Iterator | me | ) | [inline] |
Definition at line 50 of file kgamepropertylist.h.
| Iterator KGamePropertyList< type >::insert | ( | Iterator | it, | |
| const type & | d | |||
| ) | [inline] |
Definition at line 65 of file kgamepropertylist.h.
| void KGamePropertyList< type >::prepend | ( | const type & | d | ) | [inline] |
Definition at line 89 of file kgamepropertylist.h.
| void KGamePropertyList< type >::append | ( | const type & | d | ) | [inline] |
Definition at line 91 of file kgamepropertylist.h.
| Iterator KGamePropertyList< type >::erase | ( | Iterator | it | ) | [inline] |
Definition at line 110 of file kgamepropertylist.h.
| Iterator KGamePropertyList< type >::remove | ( | Iterator | it | ) | [inline] |
Definition at line 133 of file kgamepropertylist.h.
| void KGamePropertyList< type >::remove | ( | const type & | d | ) | [inline] |
Definition at line 138 of file kgamepropertylist.h.
| void KGamePropertyList< type >::clear | ( | ) | [inline] |
| void KGamePropertyList< type >::load | ( | QDataStream & | s | ) | [inline, virtual] |
This will read the value of this property from the stream.
You MUST overwrite this method in order to use this class
- Parameters:
-
s The stream to read from
Implements KGamePropertyBase.
Definition at line 162 of file kgamepropertylist.h.
| void KGamePropertyList< type >::save | ( | QDataStream & | s | ) | [inline, virtual] |
Write the value into a stream.
MUST be overwritten
Implements KGamePropertyBase.
Definition at line 178 of file kgamepropertylist.h.
| void KGamePropertyList< type >::command | ( | QDataStream & | stream, | |
| int | msgid, | |||
| bool | isSender | |||
| ) | [inline, virtual] |
send a command to advanced properties like arrays
- Parameters:
-
stream The stream containing the data of the comand msgid The ID of the command - see PropertyCommandIds isSender whether this client is also the sender of the command
Reimplemented from KGamePropertyBase.
Definition at line 192 of file kgamepropertylist.h.
| void KGamePropertyList< type >::extractProperty | ( | const QByteArray & | b | ) | [inline, protected] |
Definition at line 242 of file kgamepropertylist.h.
The documentation for this class was generated from the following file:
KDE 4.0 API Reference