Inherits tpie::array_view_base< const T >.
Public Types | |
typedef const T | value_type |
Type of values contained in the array. More... | |
Public Member Functions | |
array_view (array_view< T > o) | |
template<typename A > | |
array_view (const std::vector< T, A > &v) | |
array_view (const tpie::array< T > &v) | |
array_view (const tpie::internal_vector< T > &v) | |
template<typename A > | |
array_view (const std::vector< T, A > &v, size_t start, size_t end) | |
array_view (const tpie::array< T > &v, size_t start, size_t end) | |
array_view (const T *start, const T *end) | |
array_view (const T *start, size_t size) | |
iterator | find (size_t idx) const throw () |
Return an iterator to the i'th element of the array. More... | |
const T & | at (size_t i) const throw () |
Return the element located at the given index. More... | |
bool | empty () const |
Check if the array is empty. More... | |
size_t | size () const |
Get number of elements in the array. More... | |
const T & | operator[] (size_t i) const |
Return a reference to an array entry. More... | |
bool | operator== (const array_view_base &other) const |
Check if the other array has the same elements in the same order as this. More... | |
bool | operator!= (const array_view_base &other) const |
Check if the two arrays differ. More... | |
iterator | begin () const |
Return an iterator to the beginning of the array. More... | |
iterator | end () const |
Return an iterator to the end of the array. More... | |
const T & | front () const |
Return the first element in the array. More... | |
const T & | back () const |
Return the last element in the array. More... | |
Definition at line 111 of file array_view.h.
|
inherited |
Type of values contained in the array.
Definition at line 73 of file array_view_base.h.
|
inlineinherited |
Return the element located at the given index.
i | The index of the element returned. |
Definition at line 91 of file array_view_base.h.
References tpie::array_view_base< T >::find(), and tpie::array_view_base< T >::size().
|
inlineinherited |
Return the last element in the array.
Definition at line 167 of file array_view_base.h.
|
inlineinherited |
Return an iterator to the beginning of the array.
Definition at line 150 of file array_view_base.h.
|
inlineinherited |
Check if the array is empty.
Definition at line 101 of file array_view_base.h.
|
inlineinherited |
Return an iterator to the end of the array.
Definition at line 157 of file array_view_base.h.
|
inlineinherited |
Return an iterator to the i'th element of the array.
i | The index of the element we want an iterator to. |
Definition at line 81 of file array_view_base.h.
References tpie::array_view_base< T >::size().
|
inlineinherited |
Return the first element in the array.
Definition at line 162 of file array_view_base.h.
|
inlineinherited |
Check if the two arrays differ.
other | The array to compare against. |
Definition at line 139 of file array_view_base.h.
References tpie::array_view_base< T >::at(), and tpie::array_view_base< T >::size().
|
inlineinherited |
Check if the other array has the same elements in the same order as this.
other | The array to compare against. |
Definition at line 127 of file array_view_base.h.
References tpie::array_view_base< T >::at(), and tpie::array_view_base< T >::size().
|
inlineinherited |
Return a reference to an array entry.
i | The index of the entry to return. |
Definition at line 115 of file array_view_base.h.
References tpie::array_view_base< T >::at(), and tpie::array_view_base< T >::size().
|
inlineinherited |
Get number of elements in the array.
Definition at line 107 of file array_view_base.h.