CrystalSpace

Public API Reference

csDirtyAccessArrayRefCounted< T, ElementHandler > Class Template Reference

A variant of csDirtyAccessArray with reference-counted contents. More...

#include <csutil/dirtyaccessarray.h>

Inheritance diagram for csDirtyAccessArrayRefCounted< T, ElementHandler >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 csDirtyAccessArrayRefCounted (int ilimit=0, int ithreshold=0)
void DecRef ()
 Reference counting. Delete array contents when reference reaches 0.
void IncRef ()
 Reference counting.


Detailed Description

template<class T, class ElementHandler = csArrayElementHandler<T>>
class csDirtyAccessArrayRefCounted< T, ElementHandler >

A variant of csDirtyAccessArray with reference-counted contents.

That is, when the reference count of the array drops to 0, it's contents are deleted (however, not the array object itself).

Definition at line 106 of file dirtyaccessarray.h.


Member Function Documentation

template<class T, class ElementHandler = csArrayElementHandler<T>>
void csDirtyAccessArrayRefCounted< T, ElementHandler >::DecRef (  )  [inline]

Reference counting. Delete array contents when reference reaches 0.

Definition at line 120 of file dirtyaccessarray.h.

References csArray< T, ElementHandler, CS::Memory::AllocatorMalloc, csArrayCapacityDefault >::DeleteAll().

template<class T, class ElementHandler = csArrayElementHandler<T>>
void csDirtyAccessArrayRefCounted< T, ElementHandler >::IncRef (  )  [inline]

Reference counting.

Definition at line 117 of file dirtyaccessarray.h.


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