OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
FieldLoc< Dim > Class Template Reference

#include <FieldLoc.h>

Collaboration diagram for FieldLoc< Dim >:

Public Member Functions

 FieldLoc (const vec< int, Dim > &v, int f)
 FieldLoc (const FieldLoc< Dim > &fl)
 FieldLoc ()
 ~FieldLoc ()
FieldLoc< Dim > & operator= (const FieldLoc< Dim > &fl)
int & operator[] (int n)
int operator[] (int n) const
int getIndex () const
void setIndex (int newval)
NDIndex< DimgetDomain () const

Private Attributes

vec< int, Dimloc
int LFIndex

Detailed Description

template<unsigned Dim>
class FieldLoc< Dim >

Definition at line 29 of file FieldLoc.h.

Constructor & Destructor Documentation

◆ FieldLoc() [1/3]

template<unsigned Dim>
FieldLoc< Dim >::FieldLoc ( const vec< int, Dim > & v,
int f )
inline

Definition at line 35 of file FieldLoc.h.

References LFIndex, and loc.

Referenced by FieldLoc(), and operator=().

◆ FieldLoc() [2/3]

template<unsigned Dim>
FieldLoc< Dim >::FieldLoc ( const FieldLoc< Dim > & fl)
inline

Definition at line 38 of file FieldLoc.h.

References FieldLoc(), LFIndex, and loc.

Here is the call graph for this function:

◆ FieldLoc() [3/3]

template<unsigned Dim>
FieldLoc< Dim >::FieldLoc ( )
inline

Definition at line 41 of file FieldLoc.h.

References LFIndex.

◆ ~FieldLoc()

template<unsigned Dim>
FieldLoc< Dim >::~FieldLoc ( )
inline

Definition at line 44 of file FieldLoc.h.

Member Function Documentation

◆ getDomain()

template<unsigned Dim>
NDIndex< Dim > FieldLoc< Dim >::getDomain ( ) const
inline

Definition at line 67 of file FieldLoc.h.

References Dim, and loc.

Referenced by IndexedBareFieldIterator< T, Dim >::SetCurrentLocation().

◆ getIndex()

template<unsigned Dim>
int FieldLoc< Dim >::getIndex ( ) const
inline

Definition at line 61 of file FieldLoc.h.

References LFIndex.

Referenced by BareFieldIterator< T, Dim >::SetCurrentLocation().

◆ operator=()

template<unsigned Dim>
FieldLoc< Dim > & FieldLoc< Dim >::operator= ( const FieldLoc< Dim > & fl)
inline

Definition at line 47 of file FieldLoc.h.

References FieldLoc(), LFIndex, and loc.

Here is the call graph for this function:

◆ operator[]() [1/2]

template<unsigned Dim>
int & FieldLoc< Dim >::operator[] ( int n)
inline

Definition at line 56 of file FieldLoc.h.

References loc.

◆ operator[]() [2/2]

template<unsigned Dim>
int FieldLoc< Dim >::operator[] ( int n) const
inline

Definition at line 57 of file FieldLoc.h.

References loc.

◆ setIndex()

template<unsigned Dim>
void FieldLoc< Dim >::setIndex ( int newval)
inline

Definition at line 64 of file FieldLoc.h.

References LFIndex.

Referenced by BareFieldIterator< T, Dim >::GetCurrentLocation().

Member Data Documentation

◆ LFIndex

template<unsigned Dim>
int FieldLoc< Dim >::LFIndex
private

Definition at line 79 of file FieldLoc.h.

Referenced by FieldLoc(), FieldLoc(), FieldLoc(), getIndex(), operator=(), and setIndex().

◆ loc

template<unsigned Dim>
vec<int,Dim> FieldLoc< Dim >::loc
private

Definition at line 76 of file FieldLoc.h.

Referenced by FieldLoc(), FieldLoc(), getDomain(), operator=(), operator[](), and operator[]().


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