CrystalSpace

Public API Reference

scfArrayWrapConst< IF, Backend > Class Template Reference
[Containers]

Implementation for iArrayReadOnly<>-derived interfaces, backed by a reference to another array. More...

#include <csutil/scfarray.h>

Inheritance diagram for scfArrayWrapConst< IF, Backend >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

iArrayReadOnly<> implementation
virtual size_t Find (ContainedType const &which) const
virtual ContainedType const & Get (size_t n) const
virtual void GetAll (ContainedType *dest) const
virtual size_t GetIndex (const ContainedType *which) const
virtual size_t GetSize () const
virtual bool IsEmpty () const
virtual ContainedType const & Top () const
 scfArrayWrapConst (const Backend &storage, iBase *scfParent)
 scfArrayWrapConst (const Backend &storage)
 Initialize with a reference to the given storage.

Public Attributes

const Backend & storage
 Reference to the array storage.

Detailed Description

template<typename IF, typename Backend>
class scfArrayWrapConst< IF, Backend >

Implementation for iArrayReadOnly<>-derived interfaces, backed by a reference to another array.

The IF template parameter denotes the array interface to be implemented, the Backend template parameter the array type used for storage.

Warning:
It must be ensured that the referenced array used for storage is alive as long as any instance of scfArrayWrap exists!

Definition at line 245 of file scfarray.h.


Constructor & Destructor Documentation

template<typename IF, typename Backend>
scfArrayWrapConst< IF, Backend >::scfArrayWrapConst ( const Backend &  storage  )  [inline]

Initialize with a reference to the given storage.

Definition at line 257 of file scfarray.h.


Member Data Documentation

template<typename IF, typename Backend>
const Backend& scfArrayWrapConst< IF, Backend >::storage


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