OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Attributes | List of all members
NDIndex< Dim > Class Template Reference

#include <NDIndex.h>

Collaboration diagram for NDIndex< Dim >:
Collaboration graph
[legend]

Public Member Functions

 NDIndex ()
 
 NDIndex (const Index *idx)
 
 NDIndex (const Index &)
 
 NDIndex (const Index &, const Index &)
 
 NDIndex (const Index &, const Index &, const Index &)
 
 NDIndex (const Index &, const Index &, const Index &, const Index &)
 
 NDIndex (const Index &, const Index &, const Index &, const Index &, const Index &)
 
 NDIndex (const Index &, const Index &, const Index &, const Index &, const Index &, const Index &)
 
 NDIndex (const NDIndex< Dim-1 > &, const Index &)
 
const Indexoperator[] (unsigned d) const
 
Indexoperator[] (unsigned d)
 
unsigned size () const
 
bool empty () const
 
NDIndex< Dimintersect (const NDIndex< Dim > &) const
 
template<unsigned D>
NDIndex< DimplugBase (const NDIndex< D > &i) const
 
bool touches (const NDIndex< Dim > &) const
 
bool contains (const NDIndex< Dim > &a) const
 
bool containsAllPoints (const NDIndex< Dim > &b) const
 
bool split (NDIndex< Dim > &l, NDIndex< Dim > &r, unsigned d, double a) const
 
bool split (NDIndex< Dim > &l, NDIndex< Dim > &r, unsigned d) const
 
bool split (NDIndex< Dim > &l, NDIndex< Dim > &r) const
 
MessageputMessage (Message &m) const
 
MessagegetMessage (Message &m)
 
 NDIndex (const NDIndex< 1 > &ndi, const Index &i)
 
 NDIndex (const NDIndex< 3 > &ndi, const Index &i)
 
 NDIndex (const NDIndex< 4 > &ndi, const Index &i)
 
 NDIndex (const NDIndex< 5 > &ndi, const Index &i)
 

Private Attributes

Index p [Dim==0?1:Dim]
 

Detailed Description

template<unsigned Dim>
class NDIndex< Dim >

Definition at line 73 of file NDIndex.h.

Constructor & Destructor Documentation

◆ NDIndex() [1/13]

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

Definition at line 78 of file NDIndex.h.

◆ NDIndex() [2/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index idx)
inline

Definition at line 22 of file NDIndexInlines.h.

References Dim.

◆ NDIndex() [3/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index i0)
inline

Definition at line 169 of file NDIndexInlines.h.

References Dim, and PInsist.

◆ NDIndex() [4/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index i0,
const Index i1 
)
inline

Definition at line 177 of file NDIndexInlines.h.

References Dim, and PInsist.

◆ NDIndex() [5/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index i0,
const Index i1,
const Index i2 
)
inline

Definition at line 186 of file NDIndexInlines.h.

References Dim, and PInsist.

◆ NDIndex() [6/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index i0,
const Index i1,
const Index i2,
const Index i3 
)
inline

Definition at line 196 of file NDIndexInlines.h.

References Dim, and PInsist.

◆ NDIndex() [7/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index i0,
const Index i1,
const Index i2,
const Index i3,
const Index i4 
)
inline

Definition at line 208 of file NDIndexInlines.h.

References Dim, and PInsist.

◆ NDIndex() [8/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const Index i0,
const Index i1,
const Index i2,
const Index i3,
const Index i4,
const Index i5 
)
inline

Definition at line 221 of file NDIndexInlines.h.

References Dim, and PInsist.

◆ NDIndex() [9/13]

template<unsigned Dim>
NDIndex< Dim >::NDIndex ( const NDIndex< Dim-1 > &  ,
const Index  
)

◆ NDIndex() [10/13]

NDIndex< 2 >::NDIndex ( const NDIndex< 1 > &  ndi,
const Index i 
)
inline

Definition at line 234 of file NDIndexInlines.h.

◆ NDIndex() [11/13]

NDIndex< 4 >::NDIndex ( const NDIndex< 3 > &  ndi,
const Index i 
)
inline

Definition at line 247 of file NDIndexInlines.h.

◆ NDIndex() [12/13]

NDIndex< 5 >::NDIndex ( const NDIndex< 4 > &  ndi,
const Index i 
)
inline

Definition at line 255 of file NDIndexInlines.h.

◆ NDIndex() [13/13]

NDIndex< 6 >::NDIndex ( const NDIndex< 5 > &  ndi,
const Index i 
)
inline

Definition at line 264 of file NDIndexInlines.h.

Member Function Documentation

◆ contains()

template<unsigned Dim>
bool NDIndex< Dim >::contains ( const NDIndex< Dim > &  a) const
inline

◆ containsAllPoints()

template<unsigned Dim>
bool NDIndex< Dim >::containsAllPoints ( const NDIndex< Dim > &  b) const
inline

Definition at line 104 of file NDIndexInlines.h.

Referenced by assign(), IndexedLocalAssign(), IndexedReceive(), and TryCompressLHS().

◆ empty()

template<unsigned Dim>
bool NDIndex< Dim >::empty
inline

◆ getMessage()

template<unsigned Dim>
Message & NDIndex< Dim >::getMessage ( Message m)
inline

◆ intersect()

template<unsigned Dim>
NDIndex< Dim > NDIndex< Dim >::intersect ( const NDIndex< Dim > &  i) const
inline

◆ operator[]() [1/2]

template<unsigned Dim>
Index & NDIndex< Dim >::operator[] ( unsigned  d)
inline

Definition at line 101 of file NDIndex.h.

References NDIndex< Dim >::p.

◆ operator[]() [2/2]

template<unsigned Dim>
const Index & NDIndex< Dim >::operator[] ( unsigned  d) const
inline

Definition at line 97 of file NDIndex.h.

References NDIndex< Dim >::p.

◆ plugBase()

template<unsigned Dim>
template<unsigned D>
NDIndex< Dim > NDIndex< Dim >::plugBase ( const NDIndex< D > &  i) const
inline

◆ putMessage()

template<unsigned Dim>
Message & NDIndex< Dim >::putMessage ( Message m) const
inline

◆ size()

template<unsigned Dim>
unsigned NDIndex< Dim >::size ( void  ) const
inline

◆ split() [1/3]

template<unsigned Dim>
bool NDIndex< Dim >::split ( NDIndex< Dim > &  l,
NDIndex< Dim > &  r 
) const
inline

Definition at line 153 of file NDIndexInlines.h.

References Dim.

◆ split() [2/3]

template<unsigned Dim>
bool NDIndex< Dim >::split ( NDIndex< Dim > &  l,
NDIndex< Dim > &  r,
unsigned  d 
) const
inline

Definition at line 140 of file NDIndexInlines.h.

References NDIndex< Dim >::split().

Here is the call graph for this function:

◆ split() [3/3]

template<unsigned Dim>
bool NDIndex< Dim >::split ( NDIndex< Dim > &  l,
NDIndex< Dim > &  r,
unsigned  d,
double  a 
) const
inline

Definition at line 128 of file NDIndexInlines.h.

References a, and NDIndex< Dim >::split().

Referenced by FieldLayout< Dim >::setup(), and NDIndex< Dim >::split().

Here is the call graph for this function:

◆ touches()

template<unsigned Dim>
bool NDIndex< Dim >::touches ( const NDIndex< Dim > &  a) const
inline

Member Data Documentation

◆ p

template<unsigned Dim>
Index NDIndex< Dim >::p[Dim==0?1:Dim]
private

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