OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
FSlice< T, S > Class Template Reference

An iterator permitting to iterate with a stride different from 1. More...

#include <FSlice.h>

Public Types

typedef
std::random_access_iterator_tag 
iterator_category
 The iterator tag, taken from the standard template library. More...
 
typedef T value_type
 The value type. More...
 
typedef std::ptrdiff_t difference_type
 The pointer difference type. More...
 
typedef Tpointer
 The pointer type. More...
 
typedef Treference
 The reference type. More...
 

Public Member Functions

 FSlice (T *)
 Constructor for array. More...
 
 FSlice (const FSlice &)
 
FSliceoperator= (const FSlice &)
 
bool operator== (const FSlice &rhs) const
 
bool operator!= (const FSlice &rhs) const
 
FSliceoperator++ ()
 Increment (iterate forward). More...
 
FSlice operator++ (int)
 Increment (iterate forward). More...
 
FSliceoperator-- ()
 Decrement (iterate backward). More...
 
FSlice operator-- (int)
 Decrement (iterate backward). More...
 
FSliceoperator+= (std::ptrdiff_t)
 Increment by multiple stride. More...
 
FSliceoperator-= (std::ptrdiff_t)
 Decrement by multiple stride. More...
 
FSlice operator+ (std::ptrdiff_t)
 Add multiple stride. More...
 
FSlice operator- (std::ptrdiff_t)
 Subtract multiple stride. More...
 
difference_type operator- (const FSlice &) const
 Difference. More...
 
Toperator* () const
 Dereference. More...
 
Toperator[] (int) const
 Delegate. More...
 

Private Attributes

Tcursor
 

Detailed Description

template<class T, int S>
class FSlice< T, S >

An iterator permitting to iterate with a stride different from 1.

Definition at line 30 of file FSlice.h.

Member Typedef Documentation

template<class T, int S>
typedef std::ptrdiff_t FSlice< T, S >::difference_type

The pointer difference type.

Definition at line 41 of file FSlice.h.

template<class T, int S>
typedef std::random_access_iterator_tag FSlice< T, S >::iterator_category

The iterator tag, taken from the standard template library.

Definition at line 35 of file FSlice.h.

template<class T, int S>
typedef T* FSlice< T, S >::pointer

The pointer type.

Definition at line 44 of file FSlice.h.

template<class T, int S>
typedef T& FSlice< T, S >::reference

The reference type.

Definition at line 47 of file FSlice.h.

template<class T, int S>
typedef T FSlice< T, S >::value_type

The value type.

Definition at line 38 of file FSlice.h.

Constructor & Destructor Documentation

template<class T , int S>
FSlice< T, S >::FSlice ( T array)
inlineexplicit

Constructor for array.

Definition at line 197 of file FSlice.h.

template<class T , int S>
FSlice< T, S >::FSlice ( const FSlice< T, S > &  rhs)
inline

Definition at line 202 of file FSlice.h.

Member Function Documentation

template<class T , int S>
bool FSlice< T, S >::operator!= ( const FSlice< T, S > &  rhs) const
inline

Definition at line 218 of file FSlice.h.

References FSlice< T, S >::cursor.

template<class T , int S>
T & FSlice< T, S >::operator* ( ) const
inline

Dereference.

Definition at line 279 of file FSlice.h.

template<class T , int S>
FSlice< T, S > FSlice< T, S >::operator+ ( std::ptrdiff_t  n)
inline

Add multiple stride.

Definition at line 261 of file FSlice.h.

References Hypervolume::n.

template<class T , int S>
FSlice< T, S > & FSlice< T, S >::operator++ ( )
inline

Increment (iterate forward).

Definition at line 223 of file FSlice.h.

template<class T , int S>
FSlice< T, S > FSlice< T, S >::operator++ ( int  )
inline

Increment (iterate forward).

Definition at line 229 of file FSlice.h.

template<class T , int S>
FSlice< T, S > & FSlice< T, S >::operator+= ( std::ptrdiff_t  n)
inline

Increment by multiple stride.

Definition at line 249 of file FSlice.h.

template<class T , int S>
FSlice< T, S > FSlice< T, S >::operator- ( std::ptrdiff_t  n)
inline

Subtract multiple stride.

Definition at line 267 of file FSlice.h.

References Hypervolume::n.

template<class T , int S>
FSlice< T, S >::difference_type FSlice< T, S >::operator- ( const FSlice< T, S > &  rhs) const
inline

Difference.

Definition at line 274 of file FSlice.h.

References FSlice< T, S >::cursor.

template<class T , int S>
FSlice< T, S > & FSlice< T, S >::operator-- ( )
inline

Decrement (iterate backward).

Definition at line 236 of file FSlice.h.

template<class T , int S>
FSlice< T, S > FSlice< T, S >::operator-- ( int  )
inline

Decrement (iterate backward).

Definition at line 242 of file FSlice.h.

template<class T , int S>
FSlice< T, S > & FSlice< T, S >::operator-= ( std::ptrdiff_t  n)
inline

Decrement by multiple stride.

Definition at line 255 of file FSlice.h.

template<class T , int S>
FSlice< T, S > & FSlice< T, S >::operator= ( const FSlice< T, S > &  rhs)
inline

Definition at line 207 of file FSlice.h.

References FSlice< T, S >::cursor.

template<class T , int S>
bool FSlice< T, S >::operator== ( const FSlice< T, S > &  rhs) const
inline

Definition at line 213 of file FSlice.h.

References FSlice< T, S >::cursor.

template<class T , int S>
T & FSlice< T, S >::operator[] ( int  n) const
inline

Delegate.

Definition at line 284 of file FSlice.h.

Member Data Documentation

template<class T, int S>
T* FSlice< T, S >::cursor
private

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