OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
SubParticleAssign.h File Reference
Include dependency graph for SubParticleAssign.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SUBPARTICLE_ASSIGNMENT_OPERATORS(FUNC, OP)

Functions

template<class PA, class T, unsigned Dim, class RHS, class OP>
void assign (SubParticleAttrib< PA, T, Dim > a, RHS b, OP op, ExprTag< true >)
template<class PA, class T, unsigned Dim, class OP>
void assign (SubParticleAttrib< PA, T, Dim > a, const T &b, OP op, ExprTag< true >)
template<class PA, class T, unsigned Dim>
void assign (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void operator<< (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void operator+= (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void operator-= (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void operator*= (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void operator/= (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void mineq (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)
template<class PA, class T, unsigned Dim>
void maxeq (const SubParticleAttrib< PA, T, Dim > &lhs, const T &rhs)

Macro Definition Documentation

◆ SUBPARTICLE_ASSIGNMENT_OPERATORS

#define SUBPARTICLE_ASSIGNMENT_OPERATORS ( FUNC,
OP )
Value:
\
template<class PA, class T, unsigned Dim> \
inline void \
FUNC(const SubParticleAttrib<PA,T,Dim>& lhs, const T& rhs) \
{ \
assign(lhs, PETE_Scalar<T>(rhs), OP(), ExprTag<true>()); \
}

Definition at line 59 of file SubParticleAssign.h.

Referenced by maxeq(), mineq(), operator*=(), operator+=(), operator-=(), operator/=(), and operator<<().

Function Documentation

◆ assign() [1/3]

template<class PA, class T, unsigned Dim>
void assign ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 69 of file SubParticleAssign.h.

References assign().

Here is the call graph for this function:

◆ assign() [2/3]

template<class PA, class T, unsigned Dim, class OP>
void assign ( SubParticleAttrib< PA, T, Dim > a,
const T & b,
OP op,
ExprTag< true >  )
inline

Definition at line 52 of file SubParticleAssign.h.

References a, and assign().

Here is the call graph for this function:

◆ assign() [3/3]

template<class PA, class T, unsigned Dim, class RHS, class OP>
void assign ( SubParticleAttrib< PA, T, Dim > a,
RHS b,
OP op,
ExprTag< true >  )

Definition at line 54 of file SubParticleAssign.hpp.

References a, IpplInfo::abort(), PAIsAssign< OP >::assign, endl(), ERRORMSG, FillGCIfNecessary(), for_each(), SubParticleAttribIter< PA, T, Dim >::getLFieldIter(), INCIPPLSTAT, SubParticleAttribIter< PA, T, Dim >::initialize(), SubParticleAttribIter< PA, T, Dim >::nextLField(), and PInsist.

Referenced by assign().

Here is the call graph for this function:

◆ maxeq()

template<class PA, class T, unsigned Dim>
void maxeq ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 76 of file SubParticleAssign.h.

References maxeq(), and SUBPARTICLE_ASSIGNMENT_OPERATORS.

Here is the call graph for this function:

◆ mineq()

template<class PA, class T, unsigned Dim>
void mineq ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 75 of file SubParticleAssign.h.

References mineq(), and SUBPARTICLE_ASSIGNMENT_OPERATORS.

Here is the call graph for this function:

◆ operator*=()

template<class PA, class T, unsigned Dim>
void operator*= ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 73 of file SubParticleAssign.h.

References SUBPARTICLE_ASSIGNMENT_OPERATORS.

◆ operator+=()

template<class PA, class T, unsigned Dim>
void operator+= ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 71 of file SubParticleAssign.h.

References SUBPARTICLE_ASSIGNMENT_OPERATORS.

◆ operator-=()

template<class PA, class T, unsigned Dim>
void operator-= ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 72 of file SubParticleAssign.h.

References SUBPARTICLE_ASSIGNMENT_OPERATORS.

◆ operator/=()

template<class PA, class T, unsigned Dim>
void operator/= ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 74 of file SubParticleAssign.h.

References SUBPARTICLE_ASSIGNMENT_OPERATORS.

◆ operator<<()

template<class PA, class T, unsigned Dim>
void operator<< ( const SubParticleAttrib< PA, T, Dim > & lhs,
const T & rhs )
inline

Definition at line 70 of file SubParticleAssign.h.

References SUBPARTICLE_ASSIGNMENT_OPERATORS.