libkdegames Library API Documentation

KGamePropertyArray< type > Class Template Reference

Inheritance diagram for KGamePropertyArray< type >:

Inheritance graph
[legend]
Collaboration diagram for KGamePropertyArray< type >:

Collaboration graph
[legend]
List of all members.

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

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.

References KGamePropertyBase::emitSignal(), and KGamePropertyBase::isEmittingSignal().

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.

References KGamePropertyArray< type >::at().

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.

References KGamePropertyBase::command(), KGamePropertyBase::emitSignal(), and KGamePropertyBase::isEmittingSignal().

Referenced by KGamePropertyArray< type >::extractProperty().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Sep 12 05:18:03 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003