#include <List.h>
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.
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 | ( | ) | [inline] |
ListView operator() | ( | int | offset, | |
int | length | |||
) | const [inline] |
ListView operator() | ( | int | offset, | |
int | length | |||
) | [inline] |
References ListBase::operator=().
References ListBase::operator=().
operator const List< T > & | ( | ) | const [inline] |
operator List< T > & | ( | ) | [inline] |