OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Index::cursor Class Reference

#include <Index.h>

Inheritance diagram for Index::cursor:
Collaboration diagram for Index::cursor:

Public Types

enum  { IsExpr = 1 }
typedef cursor PETE_Expr_t
typedef int PETE_Return_t
typedef cursor Wrapped

Public Member Functions

 cursor ()
 cursor (const Index &i)
int operator* () const
int offset () const
int offset (int i) const
int offset (int i, int j) const
int offset (int i, int j, int k) const
void step (unsigned d)
void rewind (unsigned d)
bool plugBase (const Index &i, unsigned d=0)
int id () const
cursor MakeExpression () const
cursorPETE_unwrap ()

Private Attributes

int Current
int Stride
int First
unsigned Dim
const IndexI

Detailed Description

Definition at line 311 of file Index.h.

Member Typedef Documentation

◆ PETE_Expr_t

Definition at line 372 of file Index.h.

◆ PETE_Return_t

Definition at line 373 of file Index.h.

◆ Wrapped

typedef cursor PETE_Expr< cursor >::Wrapped
inherited

Definition at line 79 of file PETE.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IsExpr 

Definition at line 371 of file Index.h.

Constructor & Destructor Documentation

◆ cursor() [1/2]

Index::cursor::cursor ( )
inline

Definition at line 320 of file Index.h.

Referenced by MakeExpression().

◆ cursor() [2/2]

Index::cursor::cursor ( const Index & i)
inline

Definition at line 321 of file Index.h.

References Current, Dim, First, Index::first(), I, Index::Index(), Stride, and Index::stride().

Here is the call graph for this function:

Member Function Documentation

◆ id()

int Index::cursor::id ( ) const
inline

Definition at line 368 of file Index.h.

References I.

Referenced by for_each().

◆ MakeExpression()

cursor Index::cursor::MakeExpression ( ) const
inline

Definition at line 374 of file Index.h.

References cursor().

Here is the call graph for this function:

◆ offset() [1/4]

int Index::cursor::offset ( ) const
inline

Definition at line 331 of file Index.h.

References Current.

Referenced by for_each(), for_each(), and for_each().

◆ offset() [2/4]

int Index::cursor::offset ( int i) const
inline

Definition at line 332 of file Index.h.

References Current, Dim, and Stride.

◆ offset() [3/4]

int Index::cursor::offset ( int i,
int j ) const
inline

Definition at line 337 of file Index.h.

References Current, Dim, and Stride.

◆ offset() [4/4]

int Index::cursor::offset ( int i,
int j,
int k ) const
inline

Definition at line 343 of file Index.h.

References Current, Dim, and Stride.

◆ operator*()

int Index::cursor::operator* ( ) const
inline

Definition at line 330 of file Index.h.

References Current.

◆ PETE_unwrap()

cursor & PETE_Expr< cursor >::PETE_unwrap ( )
inlineinherited

Definition at line 81 of file PETE.h.

◆ plugBase()

bool Index::cursor::plugBase ( const Index & i,
unsigned d = 0 )
inline

Definition at line 360 of file Index.h.

References Current, Dim, First, Index::first(), I, Index::Index(), Stride, and Index::stride().

Referenced by for_each().

Here is the call graph for this function:

◆ rewind()

void Index::cursor::rewind ( unsigned d)
inline

Definition at line 355 of file Index.h.

References Current, Dim, and First.

Referenced by for_each().

◆ step()

void Index::cursor::step ( unsigned d)
inline

Definition at line 350 of file Index.h.

References Current, Dim, and Stride.

Referenced by for_each().

Member Data Documentation

◆ Current

int Index::cursor::Current
private

Definition at line 314 of file Index.h.

Referenced by cursor(), offset(), offset(), offset(), offset(), operator*(), plugBase(), rewind(), and step().

◆ Dim

unsigned Index::cursor::Dim
private

Definition at line 317 of file Index.h.

Referenced by cursor(), offset(), offset(), offset(), plugBase(), rewind(), and step().

◆ First

int Index::cursor::First
private

Definition at line 316 of file Index.h.

Referenced by cursor(), plugBase(), and rewind().

◆ I

const Index* Index::cursor::I
private

Definition at line 318 of file Index.h.

Referenced by cursor(), id(), and plugBase().

◆ Stride

int Index::cursor::Stride
private

Definition at line 315 of file Index.h.

Referenced by cursor(), offset(), offset(), offset(), plugBase(), and step().


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