OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Attributes | List of all members
Index::iterator Class Reference

#include <Index.h>

Public Member Functions

 iterator ()
 
 iterator (int current, int stride=1)
 
int operator* ()
 
iterator operator-- (int)
 
iteratoroperator-- ()
 
iterator operator++ (int)
 
iteratoroperator++ ()
 
iteratoroperator+= (int i)
 
iteratoroperator-= (int i)
 
iterator operator+ (int i) const
 
iterator operator- (int i) const
 
int operator[] (int i) const
 
bool operator== (const iterator &y) const
 
bool operator< (const iterator &y) const
 
bool operator!= (const iterator &y) const
 
bool operator> (const iterator &y) const
 
bool operator<= (const iterator &y) const
 
bool operator>= (const iterator &y) const
 

Private Attributes

int Current
 
int Stride
 

Detailed Description

Definition at line 240 of file Index.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

Index::iterator::iterator ( )
inline

Definition at line 244 of file Index.h.

Referenced by operator+(), and operator-().

◆ iterator() [2/2]

Index::iterator::iterator ( int  current,
int  stride = 1 
)
inline

Definition at line 245 of file Index.h.

Member Function Documentation

◆ operator!=()

bool Index::iterator::operator!= ( const iterator y) const
inline

Definition at line 301 of file Index.h.

◆ operator*()

int Index::iterator::operator* ( )
inline

Definition at line 247 of file Index.h.

References Current.

◆ operator+()

iterator Index::iterator::operator+ ( int  i) const
inline

Definition at line 280 of file Index.h.

References Current, iterator(), and Stride.

Here is the call graph for this function:

◆ operator++() [1/2]

iterator& Index::iterator::operator++ ( )
inline

Definition at line 265 of file Index.h.

References Current, and Stride.

◆ operator++() [2/2]

iterator Index::iterator::operator++ ( int  )
inline

Definition at line 259 of file Index.h.

References Current, and Stride.

◆ operator+=()

iterator& Index::iterator::operator+= ( int  i)
inline

Definition at line 270 of file Index.h.

References Current, and Stride.

◆ operator-()

iterator Index::iterator::operator- ( int  i) const
inline

Definition at line 284 of file Index.h.

References Current, iterator(), and Stride.

Here is the call graph for this function:

◆ operator--() [1/2]

iterator& Index::iterator::operator-- ( )
inline

Definition at line 254 of file Index.h.

References Current, and Stride.

◆ operator--() [2/2]

iterator Index::iterator::operator-- ( int  )
inline

Definition at line 248 of file Index.h.

References Current, and Stride.

◆ operator-=()

iterator& Index::iterator::operator-= ( int  i)
inline

Definition at line 275 of file Index.h.

References Current, and Stride.

◆ operator<()

bool Index::iterator::operator< ( const iterator y) const
inline

Definition at line 296 of file Index.h.

References Current, and Stride.

◆ operator<=()

bool Index::iterator::operator<= ( const iterator y) const
inline

Definition at line 303 of file Index.h.

◆ operator==()

bool Index::iterator::operator== ( const iterator y) const
inline

Definition at line 292 of file Index.h.

References Current, and Stride.

◆ operator>()

bool Index::iterator::operator> ( const iterator y) const
inline

Definition at line 302 of file Index.h.

◆ operator>=()

bool Index::iterator::operator>= ( const iterator y) const
inline

Definition at line 304 of file Index.h.

◆ operator[]()

int Index::iterator::operator[] ( int  i) const
inline

Definition at line 288 of file Index.h.

References Current, and Stride.

Member Data Documentation

◆ Current

int Index::iterator::Current
private

◆ Stride

int Index::iterator::Stride
private

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