![]() |
Public API Reference |
![]() |
Implementation for iArrayReadOnly<>-, iArrayChangeElements<>- and iArrayChangeAll<>-derived interfaces, backed by a reference to another array. More...
#include <csutil/scfarray.h>
Public Member Functions | |
scfArrayWrap (Backend &storage) | |
Initialize with a reference to the given storage. | |
scfArrayWrap (Backend &storage, iBase *scfParent) | |
Initialize with a reference to the given storage. | |
iArrayReadOnly<> implementation | |
virtual size_t | GetSize () const |
virtual ContainedType const & | Get (size_t n) const |
virtual ContainedType const & | Top () const |
virtual size_t | Find (ContainedType const &which) const |
virtual size_t | GetIndex (const ContainedType *which) const |
virtual bool | IsEmpty () const |
virtual void | GetAll (ContainedType *dest) const |
iArrayChangeElements<> implementation | |
virtual ContainedType & | Get (size_t n) |
virtual ContainedType & | Top () |
iArrayChangeAll<> implementation | |
virtual void | SetSize (size_t n, ContainedType const &what) |
virtual void | SetSize (size_t n) |
virtual ContainedType & | GetExtend (size_t n) |
virtual void | Put (size_t n, ContainedType const &what) |
virtual size_t | Push (ContainedType const &what) |
virtual size_t | PushSmart (ContainedType const &what) |
virtual ContainedType | Pop () |
virtual bool | Insert (size_t n, ContainedType const &item) |
virtual void | DeleteAll () |
virtual void | Truncate (size_t n) |
virtual void | Empty () |
virtual bool | DeleteIndex (size_t n) |
virtual bool | DeleteIndexFast (size_t n) |
virtual bool | Delete (ContainedType const &item) |
Public Attributes | |
Backend & | storage |
Reference to the array storage. |
Implementation for iArrayReadOnly<>-, iArrayChangeElements<>- and iArrayChangeAll<>-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.
Definition at line 150 of file scfarray.h.
scfArrayWrap< IF, Backend >::scfArrayWrap | ( | Backend & | storage | ) | [inline] |
Initialize with a reference to the given storage.
Definition at line 162 of file scfarray.h.
scfArrayWrap< IF, Backend >::scfArrayWrap | ( | Backend & | storage, |
iBase * | scfParent | ||
) | [inline] |
Initialize with a reference to the given storage.
Definition at line 164 of file scfarray.h.
Backend& scfArrayWrap< IF, Backend >::storage |
Reference to the array storage.
Definition at line 158 of file scfarray.h.