arbb::const_range< T > Class Template Reference

A pair of iterators pointing to the beginning and end of a range of data that can not be modified. More...

List of all members.

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.

Detailed Description

template<typename T>
class arbb::const_range< T >

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().

See Also

arbb::range

Definition at line 103 of file range.hpp.


Member Typedef Documentation

template<typename T>
typedef const_range_iterator<T> arbb::const_range< T >::const_iterator

An iterator to an element in the range.

Definition at line 107 of file range.hpp.

template<typename T>
typedef detail::range_element<T> arbb::const_range< T >::element

The type returned by dereferencing an iterator.

Definition at line 109 of file range.hpp.


Constructor & Destructor Documentation

template<typename T>
arbb::const_range< T >::const_range (  ) 

Default constructor.

template<typename T>
arbb::const_range< T >::const_range ( const const_range< T > &  other  ) 

Copy constructor.


Member Function Documentation

template<typename T>
void arbb::const_range< T >::operator= ( const const_range< T > &  other  ) 

Assignment operator.

template<typename T>
const_iterator arbb::const_range< T >::begin (  )  const

Returns an iterator pointing to the beginning of the range.

template<typename T>
const_iterator arbb::const_range< T >::end (  )  const

Returns an iterator representing the end of the range.

template<typename T>
uncaptured<usize>::type arbb::const_range< T >::size (  ) 

Returns the number of elements addressed by this range.

Equivalent to std::distance(begin(), end()).

template<typename T>
bool arbb::const_range< T >::empty (  ) 

Returns true if size() == 0, false otherwise.

template<typename T>
const element arbb::const_range< T >::operator[] ( typename uncaptured< usize >::type  index  )  const

Returns a reference to the element at index.

template<typename T>
const element arbb::const_range< T >::at ( typename uncaptured< usize >::type  index  )  const

Returns a reference to the element at index.


The documentation for this class was generated from the following file:

Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.