OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
SubField< T, Dim, M, C, S > Class Template Reference

#include <SubField.h>

Inheritance diagram for SubField< T, Dim, M, C, S >:
Inheritance graph
Collaboration diagram for SubField< T, Dim, M, C, S >:
Collaboration graph

Public Types

enum  { Dim_u = Dim }
 
enum  { IsExpr = 1 }
 
typedef T T_t
 
typedef S Index_t
 
typedef SubFieldIter< T, Dim, S > iterator
 
typedef iterator PETE_Expr_t
 
typedef SubBareField< T, Dim, S > Wrapped
 

Public Member Functions

Field< T, Dim, M, C > & getField () const
 
template<class S2 >
SubField< T, Dim, M, C, typename SubFieldTraits< T, Dim, S, S2 >::Return_t > operator[] (const S2 &s)
 
void operator= (T)
 
SubField< T, Dim, M, C, S > & operator= (const SubField< T, Dim, M, C, S > &)
 
template<class B >
SubField< T, Dim, M, C, S > & operator= (const PETE_Expr< B > &b)
 
template<class S2 >
 SubField (Field< T, Dim, M, C > &f, const S2 &s)
 
iterator begin () const
 
iterator end () const
 
const S & getDomain () const
 
void makeNDIndex (NDIndex< Dim > &i)
 
BareField< T, Dim > & getBareField () const
 
get ()
 
void get (T &r)
 
bool checkBrackets () const
 
void write (std::ostream &)
 
iterator MakeExpression () const
 
PETE_TUTree< OpParens< int >, iteratoroperator() (int arg)
 
PETE_TUTree< OpParens< std::pair< int, int > >, iteratoroperator() (int a1, int a2)
 
SubBareField< T, Dim, S > & PETE_unwrap ()
 
const SubBareField< T, Dim, S > & PETE_unwrap () const
 

Static Public Member Functions

static int getSubsetType ()
 

Protected Member Functions

bool checkAddBrackets (unsigned int)
 

Protected Attributes

Field< T, Dim, M, C > & F
 
BareField< T, Dim > & A
 
MyDomain
 
unsigned int Brackets
 

Friends

class Field< T, Dim, M, C >
 

Detailed Description

template<class T, unsigned int Dim, class M, class C, class S>
class SubField< T, Dim, M, C, S >

Definition at line 32 of file SubField.h.

Member Typedef Documentation

◆ Index_t

template<class T , unsigned Dim, class S >
typedef S SubBareField< T, Dim, S >::Index_t
inherited

Definition at line 64 of file SubBareField.h.

◆ iterator

template<class T , unsigned Dim, class S >
typedef SubFieldIter<T,Dim,S> SubBareField< T, Dim, S >::iterator
inherited

Definition at line 65 of file SubBareField.h.

◆ PETE_Expr_t

template<class T , unsigned Dim, class S >
typedef iterator SubBareField< T, Dim, S >::PETE_Expr_t
inherited

Definition at line 171 of file SubBareField.h.

◆ T_t

template<class T , unsigned Dim, class S >
typedef T SubBareField< T, Dim, S >::T_t
inherited

Definition at line 63 of file SubBareField.h.

◆ Wrapped

typedef SubBareField< T, Dim, S > PETE_Expr< SubBareField< T, Dim, S > >::Wrapped
inherited

Definition at line 79 of file PETE.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T , unsigned Dim, class S >
anonymous enum
inherited
Enumerator
Dim_u 

Definition at line 68 of file SubBareField.h.

◆ anonymous enum

template<class T , unsigned Dim, class S >
anonymous enum
inherited
Enumerator
IsExpr 

Definition at line 170 of file SubBareField.h.

Constructor & Destructor Documentation

◆ SubField()

template<class T , unsigned int Dim, class M , class C , class S >
template<class S2 >
SubField< T, Dim, M, C, S >::SubField ( Field< T, Dim, M, C > &  f,
const S2 &  s 
)
inline

Definition at line 122 of file SubField.h.

Member Function Documentation

◆ begin()

template<class T , unsigned int Dim, class S >
SubBareField< T, Dim, S >::iterator SubBareField< T, Dim, S >::begin
inherited

◆ checkAddBrackets()

template<class T , unsigned int Dim, class S >
bool SubBareField< T, Dim, S >::checkAddBrackets ( unsigned int  B)
protectedinherited

Definition at line 41 of file SubBareField.hpp.

References Dim, endl(), and ERRORMSG.

Referenced by SubBareField< T, Dim, S >::operator[](), and SubField< T, Dim, M, C, S >::operator[]().

Here is the call graph for this function:

◆ checkBrackets()

template<class T , unsigned Dim, class S >
bool SubBareField< T, Dim, S >::checkBrackets ( ) const
inlineinherited

Definition at line 99 of file SubBareField.h.

References SubBareField< T, Dim, S >::Brackets, and Dim.

Referenced by SubBareField< T, Dim, S >::operator()().

◆ end()

template<class T , unsigned int Dim, class S >
SubBareField< T, Dim, S >::iterator SubBareField< T, Dim, S >::end
inherited

Definition at line 109 of file SubBareField.hpp.

◆ get() [1/2]

template<class T , unsigned Dim, class S >
T SubBareField< T, Dim, S >::get ( )
inlineinherited

Definition at line 92 of file SubBareField.h.

References SubBareField< T, Dim, S >::get(), and Attrib::Legacy::Distribution::T.

Referenced by SubBareField< T, Dim, S >::get().

Here is the call graph for this function:

◆ get() [2/2]

template<class T , unsigned int Dim, class S >
void SubBareField< T, Dim, S >::get ( T &  r)
inherited

Definition at line 83 of file SubBareField.hpp.

References PAssert_EQ.

◆ getBareField()

template<class T , unsigned Dim, class S >
BareField< T, Dim > & SubBareField< T, Dim, S >::getBareField ( ) const
inlineinherited

Definition at line 89 of file SubBareField.h.

References SubBareField< T, Dim, S >::A.

◆ getDomain()

template<class T , unsigned Dim, class S >
const S & SubBareField< T, Dim, S >::getDomain ( void  ) const
inlineinherited

Definition at line 81 of file SubBareField.h.

References SubBareField< T, Dim, S >::MyDomain.

◆ getField()

template<class T , unsigned int Dim, class M , class C , class S >
Field< T, Dim, M, C > & SubField< T, Dim, M, C, S >::getField ( ) const
inline

Definition at line 42 of file SubField.h.

References SubField< T, Dim, M, C, S >::F.

◆ getSubsetType()

template<class T , unsigned Dim, class S >
static int SubBareField< T, Dim, S >::getSubsetType ( )
inlinestaticinherited

Definition at line 96 of file SubBareField.h.

◆ MakeExpression()

template<class T , unsigned Dim, class S >
iterator SubBareField< T, Dim, S >::MakeExpression ( ) const
inlineinherited

Definition at line 172 of file SubBareField.h.

References SubBareField< T, Dim, S >::begin().

Here is the call graph for this function:

◆ makeNDIndex()

template<class T , unsigned Dim, class S >
void SubBareField< T, Dim, S >::makeNDIndex ( NDIndex< Dim > &  i)
inlineinherited

Definition at line 86 of file SubBareField.h.

References SubBareField< T, Dim, S >::MyDomain.

◆ operator()() [1/2]

template<class T , unsigned Dim, class S >
PETE_TUTree< OpParens< std::pair< int, int > >, iterator > SubBareField< T, Dim, S >::operator() ( int  a1,
int  a2 
)
inlineinherited

Definition at line 182 of file SubBareField.h.

References SubBareField< T, Dim, S >::begin(), and SubBareField< T, Dim, S >::checkBrackets().

Here is the call graph for this function:

◆ operator()() [2/2]

template<class T , unsigned Dim, class S >
PETE_TUTree< OpParens< int >, iterator > SubBareField< T, Dim, S >::operator() ( int  arg)
inlineinherited

Definition at line 177 of file SubBareField.h.

References arg(), SubBareField< T, Dim, S >::begin(), and SubBareField< T, Dim, S >::checkBrackets().

Here is the call graph for this function:

◆ operator=() [1/3]

template<class T , unsigned int Dim, class M , class C , class S >
template<class B >
SubField< T, Dim, M, C, S > & SubField< T, Dim, M, C, S >::operator= ( const PETE_Expr< B > &  b)
inline

Definition at line 100 of file SubField.h.

References assign().

Here is the call graph for this function:

◆ operator=() [2/3]

template<class T , unsigned int Dim, class M , class C , class S >
SubField< T, Dim, M, C, S > & SubField< T, Dim, M, C, S >::operator= ( const SubField< T, Dim, M, C, S > &  s)

Definition at line 46 of file SubField.hpp.

References assign().

Here is the call graph for this function:

◆ operator=() [3/3]

template<class T , unsigned int Dim, class M , class C , class S >
void SubField< T, Dim, M, C, S >::operator= ( t)

Definition at line 36 of file SubField.hpp.

References assign().

Here is the call graph for this function:

◆ operator[]()

template<class T , unsigned int Dim, class M , class C , class S >
template<class S2 >
SubField< T, Dim, M, C, typename SubFieldTraits< T, Dim, S, S2 >::Return_t > SubField< T, Dim, M, C, S >::operator[] ( const S2 &  s)
inline

◆ PETE_unwrap() [1/2]

SubBareField< T, Dim, S > & PETE_Expr< SubBareField< T, Dim, S > >::PETE_unwrap ( )
inlineinherited

Definition at line 81 of file PETE.h.

◆ PETE_unwrap() [2/2]

const SubBareField< T, Dim, S > & PETE_Expr< SubBareField< T, Dim, S > >::PETE_unwrap ( ) const
inlineinherited

Definition at line 85 of file PETE.h.

◆ write()

template<class T , unsigned int Dim, class S >
void SubBareField< T, Dim, S >::write ( std::ostream &  o)
inherited

Definition at line 120 of file SubBareField.hpp.

References Dim, and PAssert_EQ.

Friends And Related Function Documentation

◆ Field< T, Dim, M, C >

template<class T , unsigned int Dim, class M , class C , class S >
friend class Field< T, Dim, M, C >
friend

Definition at line 1 of file SubField.h.

Member Data Documentation

◆ A

template<class T , unsigned Dim, class S >
BareField<T,Dim>& SubBareField< T, Dim, S >::A
protectedinherited

◆ Brackets

template<class T , unsigned Dim, class S >
unsigned int SubBareField< T, Dim, S >::Brackets
protectedinherited

◆ F

template<class T , unsigned int Dim, class M , class C , class S >
Field<T,Dim,M,C>& SubField< T, Dim, M, C, S >::F
protected

◆ MyDomain

template<class T , unsigned Dim, class S >
S SubBareField< T, Dim, S >::MyDomain
protectedinherited

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