|
Scopira
20080306
|
#include <islice.h>
Public Types | |
| typedef T | data_type |
| the generic data type T | |
| typedef islice_vec_iterator_g< T > | iterator |
| the interator type | |
| typedef const_islice_vec_iterator_g< T > | const_iterator |
| the const_interator type | |
Public Member Functions | |
| islice_vec_g (size_t len) | |
| size initing ctor | |
| size_t | size (void) const |
| size | |
| bool | empty (void) const |
| empty? | |
| void | resize (size_t len) |
| resizer | |
| void | clear (void) |
| clear | |
| iterator | begin (void) |
| begin-stl like iterator | |
| iterator | end (void) |
| end-stl like iterator | |
| const_iterator | begin (void) const |
| begin-stl like iterator | |
| const_iterator | end (void) const |
| end-stl like iterator | |
| template<class L > | |
| void | copy (const L &rhs) |
| generic copy, uses size() and iterators | |
| void | set_ptr (size_t idx, T *ref) |
| sets the address | |
| T & | operator[] (size_t idx) |
| access | |
| const T & | operator[] (size_t idx) const |
| access | |
| T & | get (size_t idx) |
| access | |
| const T & | get (size_t idx) const |
| access | |
| void | set (size_t idx, const T &val) |
| access | |
an irregular slice that looks like a vector