kdecore Library API Documentation

RArray< Z > Class Template Reference

Resizable array class. More...

#include <netwm_p.h>

List of all members.

Public Methods

 RArray ()
 Constructs an empty (size == 0) array.

 ~RArray ()
 Resizable array destructor.

Z & operator[] (int)
 The [] operator does the work.

int size () const
 Returns the size of the array.


Detailed Description

template<class Z>
class RArray< Z >

Resizable array class.

This resizable array is used to simplify the implementation. The existance of this class is to keep the implementation from depending on a separate framework/library.

Definition at line 38 of file netwm_p.h.


Constructor & Destructor Documentation

template<class Z>
RArray< Z >::RArray  
 

Constructs an empty (size == 0) array.

template<class Z>
RArray< Z >::~RArray  
 

Resizable array destructor.


Member Function Documentation

template<class Z>
Z& RArray< Z >::operator[] int   
 

The [] operator does the work.

If the index is larger than the current size of the array, it is resized.

template<class Z>
int RArray< Z >::size   const [inline]
 

Returns the size of the array.

Definition at line 63 of file netwm_p.h.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:20:46 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001