A pair of iterators pointing to the beginning and end of a range of data that can not be modified. More...
Public Types | |
typedef const_range_iterator< T > | const_iterator |
An iterator to an element in the range. | |
typedef detail::range_element< T > | element |
The type returned by dereferencing an iterator. | |
Public Member Functions | |
const_range () | |
Default constructor. | |
const_range (const const_range &other) | |
Copy constructor. | |
void | operator= (const const_range &other) |
Assignment operator. | |
const_iterator | begin () const |
Returns an iterator pointing to the beginning of the range. | |
const_iterator | end () const |
Returns an iterator representing the end of the range. | |
uncaptured< usize >::type | size () |
Returns the number of elements addressed by this range. | |
bool | empty () |
Returns true if size() == 0 , false otherwise. | |
const element | operator[] (typename uncaptured< usize >::type index) const |
Returns a reference to the element at index . | |
const element | at (typename uncaptured< usize >::type index) const |
Returns a reference to the element at index . |
A pair of iterators pointing to the beginning and end of a range of data that can not be modified.
The range type is returned by data access functions such as arbb::dense::read_only_range().
Definition at line 103 of file range.hpp.
typedef const_range_iterator<T> arbb::const_range< T >::const_iterator |
typedef detail::range_element<T> arbb::const_range< T >::element |
arbb::const_range< T >::const_range | ( | ) |
Default constructor.
arbb::const_range< T >::const_range | ( | const const_range< T > & | other | ) |
Copy constructor.
void arbb::const_range< T >::operator= | ( | const const_range< T > & | other | ) |
Assignment operator.
const_iterator arbb::const_range< T >::begin | ( | ) | const |
Returns an iterator pointing to the beginning of the range.
const_iterator arbb::const_range< T >::end | ( | ) | const |
Returns an iterator representing the end of the range.
uncaptured<usize>::type arbb::const_range< T >::size | ( | ) |
bool arbb::const_range< T >::empty | ( | ) |
Returns true if size() == 0
, false otherwise.
const element arbb::const_range< T >::operator[] | ( | typename uncaptured< usize >::type | index | ) | const |
Returns a reference to the element at index
.
const element arbb::const_range< T >::at | ( | typename uncaptured< usize >::type | index | ) | const |
Returns a reference to the element at index
.
Copyright © 2010, Intel Corporation. All rights reserved.