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 >:
Collaboration diagram for SubField< T, Dim, M, C, S >:

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 ()

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.

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

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

Here is the call graph for this function:

Member Function Documentation

◆ begin()

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

Definition at line 101 of file SubBareField.hpp.

References A, Brackets, and MyDomain.

Referenced by MakeExpression(), operator()(), and operator()().

◆ 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 Brackets, Dim, endl(), and ERRORMSG.

Referenced by 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 Brackets, and Dim.

Referenced by get(), operator()(), and operator()().

◆ end()

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

Definition at line 109 of file SubBareField.hpp.

References A, Brackets, and MyDomain.

◆ 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 get().

Referenced by 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 A, checkBrackets(), MyDomain, and PAssert_EQ.

Here is the call graph for this function:

◆ 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 A.

◆ getDomain()

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

Definition at line 81 of file SubBareField.h.

References 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 F.

◆ getSubsetType()

template<class T, unsigned Dim, class S>
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 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 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 begin(), and 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(), begin(), and 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(), and SubField().

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 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

Definition at line 58 of file SubField.h.

References SubBareField< T, Dim, S >::A, SubBareField< T, Dim, S >::Brackets, SubFieldTraits< T, Dim, S1, S2 >::Brackets_u, SubBareField< T, Dim, S >::checkAddBrackets(), SubFieldTraits< T, Dim, S1, S2 >::combine(), Dim, F, SubBareField< T, Dim, S >::MyDomain, and SubField().

Here is the call graph for this function:

◆ PETE_unwrap()

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

Definition at line 81 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 A, Brackets, Dim, MyDomain, and PAssert_EQ.

Referenced by BareField< T, Dim >.

◆ 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

Definition at line 110 of file SubField.h.

Referenced by getField(), operator[](), and SubField().

◆ 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: