Public Types | Public Member Functions

basic_range< SizeType, DistanceType > Class Template Reference

A range class that refers to an interval [start, stop), where 'start' is included, and 'stop' is excluded. More...

#include <range.hpp>

Public Types

typedef SizeType size_type
typedef DistanceType difference_type
typedef size_type value_type
typedef value_type const_reference
typedef const_reference reference

Public Member Functions

 basic_range ()
 basic_range (size_type start_index, size_type stop_index)
size_type start () const
size_type size () const
const_reference operator() (size_type i) const
const_reference operator[] (size_type i) const
bool operator== (const basic_range &r) const
bool operator!= (const basic_range &r) const

Detailed Description

template<typename SizeType, typename DistanceType>
class viennacl::basic_range< SizeType, DistanceType >

A range class that refers to an interval [start, stop), where 'start' is included, and 'stop' is excluded.

Similar to the boost::numeric::ublas::basic_range class.


Member Typedef Documentation

typedef DistanceType difference_type
typedef SizeType size_type

Constructor & Destructor Documentation

basic_range (  )  [inline]
basic_range ( size_type  start_index,
size_type  stop_index 
) [inline]

Member Function Documentation

bool operator!= ( const basic_range< SizeType, DistanceType > &  r  )  const [inline]
const_reference operator() ( size_type  i  )  const [inline]
bool operator== ( const basic_range< SizeType, DistanceType > &  r  )  const [inline]
const_reference operator[] ( size_type  i  )  const [inline]
size_type size (  )  const [inline]
size_type start (  )  const [inline]

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