Bolt  1.3
C++ template library with support for OpenCL
Public Member Functions | Public Attributes | Friends | List of all members
bolt::amp::device_vector< T, CONT >::reverse_iterator_base< Container > Class Template Reference

A reverse random access iterator in the classic sense. More...

#include <device_vector.h>

Inheritance diagram for bolt::amp::device_vector< T, CONT >::reverse_iterator_base< Container >:

Public Member Functions

 reverse_iterator_base (Container &lhs, int index)
 
template<typename OtherContainer >
 reverse_iterator_base (const reverse_iterator_base< OtherContainer > &lhs)
 
 reverse_iterator_base (const reverse_iterator_base &lhs)
 
reverse_iterator_base
< Container > & 
operator= (const reverse_iterator_base< Container > &lhs)
 
reverse_iterator_base
< Container > & 
operator+= (const difference_type &n)
 
const reverse_iterator_base
< Container > 
operator+ (const difference_type &n) const
 
int getIndex () const
 
Container & getContainer () const
 
difference_type distance_to (const reverse_iterator_base< Container > &lhs) const
 
void advance (difference_type n)
 
void increment ()
 
void decrement ()
 
template<typename OtherContainer >
bool equal (const reverse_iterator_base< OtherContainer > &lhs) const
 
value_type & operator[] (int x) const restrict(cpu
 
value_type & operator* () const restrict(cpu
 

Public Attributes

int m_Index
 
value_type amp
 

Friends

class boost::iterator_core_access
 
class device_vector< value_type >
 
template<typename >
class reverse_iterator_base
 

Detailed Description

template<typename T, template< typename, int RANK=1 > class CONT = concurrency::array_view>
template<typename Container>
class bolt::amp::device_vector< T, CONT >::reverse_iterator_base< Container >

A reverse random access iterator in the classic sense.

Todo:
Need to implement base() which returns the base iterator
See Also
http://www.sgi.com/tech/stl/ReverseIterator.html
http://www.sgi.com/tech/stl/RandomAccessIterator.html

Member Data Documentation

template<typename T, template< typename, int RANK=1 > class CONT = concurrency::array_view>
template<typename Container>
value_type bolt::amp::device_vector< T, CONT >::reverse_iterator_base< Container >::amp
Initial value:
{
return m_Container[m_Index - x]

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