Scopira
20080306
|
#include <array.h>
Public Types | |
typedef T | data_type |
typedef T * | iterator |
typedef const T * | const_iterator |
Public Member Functions | |
array_view (basic_array< T > &rhs) | |
array_view (T *b, T *e) | |
template<size_t N> | |
array_view (fixed_array< T, N > &rhs) | |
template<size_t N> | |
array_view (hybrid_array< T, N > &rhs) | |
T * | array (void) |
const T * | array (void) const |
T * | c_array (void) |
const T * | c_array (void) const |
iterator | begin (void) |
iterator | end (void) |
const_iterator | begin (void) const |
const_iterator | end (void) const |
void | clear_zero (void) |
size_t | size (void) const |
bool | empty (void) const |
void | set (size_t idx, const T &v) |
const T & | get (size_t idx) const |
T & | get (size_t idx) |
const T & | operator[] (size_t idx) const |
T & | operator[] (size_t idx) |
Protected Attributes | |
T * | dm_ary |
T * | dm_end |
A (non-resizable) "view" of another array
|
inline |
Converting ctor
|
inline |
Converting ctor
|
inline |
Converting ctor
|
inline |
Converting ctor
|
inline |
Raw access to the array
|
inline |
Raw access to the array
|
inline |
STL-like iteration
|
inline |
STL-like iteration
|
inline |
Raw access to the array
|
inline |
Raw access to the array
|
inline |
Clears all the array values to binary 0. Does not resize the array. This is dangerous on non-POD classes.
References scopira::tool::array_view< T >::size().
|
inline |
Is the array empty (0 length)?
|
inline |
STL-like iteration
|
inline |
STL-like iteration
|
inline |
Individual element setter
|
inline |
Individual element setter
|
inline |
Nice reference access
|
inline |
Nice reference access
|
inline |
Individual element setter
|
inline |
Gets the size of the array
Referenced by scopira::tool::array_view< T >::clear_zero().