ViennaCL - The Vienna Computing Library  1.5.0
Public Types | Public Member Functions
basic_slice< SizeType, DistanceType > Class Template Reference

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

#include <slice.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_slice ()
 basic_slice (size_type start_index, difference_type stride_arg, size_type size_arg)
size_type start () const
difference_type stride () const
size_type size () const
const_reference operator() (size_type i) const
const_reference operator[] (size_type i) const
bool operator== (const basic_slice &s) const
bool operator!= (const basic_slice &s) const

Detailed Description

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

A slice 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_slice ( ) [inline]
basic_slice ( size_type  start_index,
difference_type  stride_arg,
size_type  size_arg 
) [inline]

Member Function Documentation

bool operator!= ( const basic_slice< SizeType, DistanceType > &  s) const [inline]
const_reference operator() ( size_type  i) const [inline]
bool operator== ( const basic_slice< SizeType, DistanceType > &  s) const [inline]
const_reference operator[] ( size_type  i) const [inline]
size_type size ( ) const [inline]
size_type start ( ) const [inline]
difference_type stride ( ) const [inline]

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