CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csWeakRefArray< T > Class Template Reference

An array of weak references. More...

#include <csutil/weakrefarr.h>

Inheritance diagram for csWeakRefArray< T >:

csSafeCopyArray< csWeakRef< T > > csArray< csWeakRef< T >, csArrayElementHandler< csWeakRef< T > >, csSafeCopyArrayMemoryAllocator< csWeakRef< T > > > List of all members.

Public Member Functions

void Compact ()
 Compact this array by removing all weak references that have become 0.
 csWeakRefArray (int ilimit=0, int ithreshold=0)
 Initialize object to hold initially 'ilimit' elements, and increase storage by 'ithreshold' each time the upper bound is exceeded.

Detailed Description

template<class T>
class csWeakRefArray< T >

An array of weak references.

Definition at line 41 of file weakrefarr.h.


Constructor & Destructor Documentation

template<class T>
csWeakRefArray< T >::csWeakRefArray int  ilimit = 0,
int  ithreshold = 0
[inline]
 

Initialize object to hold initially 'ilimit' elements, and increase storage by 'ithreshold' each time the upper bound is exceeded.

Definition at line 48 of file weakrefarr.h.


Member Function Documentation

template<class T>
void csWeakRefArray< T >::Compact  )  [inline]
 

Compact this array by removing all weak references that have become 0.

Definition at line 57 of file weakrefarr.h.

References csArray< csWeakRef< T >, csArrayElementHandler< csWeakRef< T > >, csSafeCopyArrayMemoryAllocator< csWeakRef< T > > >::DeleteIndex(), and csArray< csWeakRef< T >, csArrayElementHandler< csWeakRef< T > >, csSafeCopyArrayMemoryAllocator< csWeakRef< T > > >::Length().


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4