|
| CoreArrayView (const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
| Default constructor.
|
|
template<class U > |
| CoreArrayView (const CoreBasicArray< U > &array) |
| Implicit constructor from a CoreBasicArray.
|
|
const unsigned int & | get_count () const |
| Return the size of the array.
|
|
const unsigned int & | get_stride () const |
| Return the byte offset between consecutive items.
|
|
const T & | get_item (unsigned int index) const |
| Return the item at the specified index.
|
|
const T & | front () const |
| Return first item. Array must not be empty.
|
|
const T & | back () const |
| Return last item. Array must not be empty.
|
|
bool | exists (const T &item) const |
| returns true if incoming item exists in vector.
|
|
unsigned int | get_index (const T &item) const |
| returns item index if found in vector, or CORE_INVALID_INDEX otherwise
|
|
CoreArrayView< T > | sub (unsigned int index, unsigned int count) const |
| Get a sub array.
|
|
const T & | operator[] (unsigned int index) const |
|
template<class U > |
CoreArrayView< T > & | operator= (const CoreBasicArray< U > &src) |
| assignment operator
|
|
CoreArrayViewIterator< T > | begin (void) const |
| Get an iterator on the first item.
|
|
CoreArrayViewIterator< T > | end (void) const |
| Get an iterator on the container's end (1 item past the last one)
|
|
bool | is_kindof (const CoreClassInfo &cinfo) const |
|
template<class T>
class CoreArrayView< T >
Class allowing to view the data from an array without modifying it. It optionaly supports padding.