KGamePropertyArray< type > Class Template Reference

Inheritance diagram for KGamePropertyArray< type >:

KGamePropertyBase List of all members.

Detailed Description

template<class type>
class KGamePropertyArray< type >

Definition at line 33 of file kgamepropertyarray.h.


Public Member Functions

 KGamePropertyArray ()
 KGamePropertyArray (int size)
 KGamePropertyArray (const KGamePropertyArray< type > &a)
bool resize (uint size)
void setAt (uint i, type data)
type at (uint i) const
type operator[] (int i) const
KGamePropertyArray< type > & operator= (const KGamePropertyArray< type > &a)
bool truncate (uint pos)
bool fill (const type &data, int size=-1)
KGamePropertyArray< type > & assign (const KGamePropertyArray< type > &a)
KGamePropertyArray< type > & assign (const type *a, uint n)
KGamePropertyArray< type > & duplicate (const KGamePropertyArray< type > &a)
KGamePropertyArray< type > & duplicate (const type *a, uint n)
KGamePropertyArray< type > & setRawData (const type *a, uint n)
void sort ()
void load (QDataStream &s)
void save (QDataStream &s)
void command (QDataStream &s, int cmd, bool)

Protected Member Functions

void extractProperty (const QByteArray &b)

Member Function Documentation

template<class type>
void KGamePropertyArray< 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 219 of file kgamepropertyarray.h.

template<class type>
void KGamePropertyArray< type >::save ( QDataStream &  s  )  [inline, virtual]

Write the value into a stream.

MUST be overwritten

Implements KGamePropertyBase.

Definition at line 233 of file kgamepropertyarray.h.

template<class type>
void KGamePropertyArray< type >::command ( QDataStream &  s,
int  cmd,
bool   
) [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 242 of file kgamepropertyarray.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys