KGamePropertyArray< type > Class Template Reference
Inheritance diagram for KGamePropertyArray< type >:

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) |
Detailed Description
template<class type>
class KGamePropertyArray< type >
Definition at line 33 of file kgamepropertyarray.h.
Member Function Documentation
|
This will read the value of this property from the stream. You MUST overwrite this method in order to use this class
Implements KGamePropertyBase. Definition at line 219 of file kgamepropertyarray.h. References KGamePropertyBase::emitSignal(), and KGamePropertyBase::isEmittingSignal(). |
|
Write the value into a stream. MUST be overwritten Implements KGamePropertyBase. Definition at line 233 of file kgamepropertyarray.h. References KGamePropertyArray< type >::at(). |
|
send a command to advanced properties like arrays
Reimplemented from KGamePropertyBase. Definition at line 242 of file kgamepropertyarray.h. References KGamePropertyBase::command(), KGamePropertyBase::emitSignal(), and KGamePropertyBase::isEmittingSignal(). Referenced by KGamePropertyArray< type >::extractProperty(). |
The documentation for this class was generated from the following file: