ListView is a 'dummy' class which is completely interchangeable with List. More...
#include <List.h>
Public Member Functions | |
ListView (const ListView &v) | |
ListView (const Base &l) | |
~ListView () | |
ListView (const Base &a, int offset, int length) | |
ListView (Base &a, int offset, int length) | |
ListView | operator() (int offset, int length) const |
ListView | operator() (int offset, int length) |
ListView & | operator= (const ListView &v) |
ListView & | operator= (const Base &b) |
operator const List< T > & () const | |
operator List< T > & () |
ListView is a 'dummy' class which is completely interchangeable with List.
We use this to give tight control over deep and shallow copying, following these rules: (1) any copy construction or initialization into a List does a deep copy of the source, and (2) any copy construction or initialization into a ListView does a shallow copy. However, List& objects are interchangeable with ListView& objects. So passing a ListView object to a List& function parameter is allowed.
~ListView | ( | ) | [inline] |
operator const List< T > & | ( | ) | const [inline] |
operator List< T > & | ( | ) | [inline] |
ListView operator() | ( | int | offset, | |
int | length | |||
) | [inline] |
ListView operator() | ( | int | offset, | |
int | length | |||
) | const [inline] |
References ListBase< T >::operator=().
Reimplemented from ListBase< T >.
References ListBase< T >::operator=().