Public Member Functions | List of all members
IjkField< Type > Class Template Reference

Generic templated field type with i-j-k addressing. More...

Inheritance diagram for IjkField< Type >:
Inheritance graph
[legend]
Collaboration diagram for IjkField< Type >:
Collaboration graph
[legend]

Public Member Functions

 IjkField ()
 
 IjkField (const IjkField< Type > &field)
 
 IjkField (IjkField< Type > &&field)
 
 IjkField (const labelVector &ijk)
 
 IjkField (const labelVector &ijk, const Type &val)
 
 IjkField (const labelVector &ijk, const Foam::zero)
 
 IjkField (const labelVector &ijk, const UList< Type > &list)
 
 IjkField (const labelVector &ijk, Field< Type > &&field)
 
const ijkAddressingijk () const
 
ijkAddressingijk ()
 
const labelVectorsizes () const
 
labelVectorsizes ()
 
const label & size (const vector::components cmpt) const
 
void clear ()
 
void resize (const labelVector &newSizes)
 
void resize (const labelVector &newSizes, const Type &val)
 
const Type & operator() (const label i, const label j, const label k) const
 
Type & operator() (const label i, const label j, const label k)
 
const Type & operator() (const labelVector &ijk) const
 
Type & operator() (const labelVector &ijk)
 
void operator= (const IjkField< Type > &rhs)
 
void operator= (const tmp< IjkField< Type >> &rhs)
 
void operator= (IjkField< Type > &&rhs)
 
void operator= (const Type &val)
 
void operator= (const Foam::zero)
 
- Public Member Functions inherited from Field< Type >
constexpr Field () noexcept
 
 Field (const label len)
 
 Field (const label len, const Type &val)
 
 Field (const label len, const Foam::zero)
 
 Field (const Foam::one, const Type &val)
 
 Field (const Foam::one, Type &&val)
 
 Field (const Foam::one, const Foam::zero)
 
 Field (const Field< Type > &fld)
 
 Field (const UList< Type > &list)
 
 Field (const IndirectListBase< Type, Addr > &list)
 
 Field (Field< Type > &&fld)
 
 Field (List< Type > &&list)
 
 Field (DynamicList< Type, SizeMin > &&list)
 
 Field (const UList< Type > &mapF, const labelUList &mapAddressing)
 
 Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing)
 
 Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights)
 
 Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights)
 
 Field (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true)
 
 Field (const UList< Type > &mapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true)
 
 Field (const UList< Type > &mapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true)
 
 Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true)
 
 Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true)
 
 Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true)
 
 Field (Field< Type > &fld, bool reuse)
 
 Field (const tmp< Field< Type >> &tfld)
 
 Field (Istream &is)
 
 Field (const word &keyword, const dictionary &dict, const label len)
 
 Field (const UList< Type > &mapF, const labelUList &mapAddressing)
 
 Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing)
 
 Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &mapWeights)
 
 Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &mapWeights)
 
 Field (const UList< Type > &mapF, const FieldMapper &mapper, const bool applyFlip)
 
 Field (const UList< Type > &mapF, const FieldMapper &mapper, const Type &defaultValue, const bool applyFlip)
 
 Field (const UList< Type > &mapF, const FieldMapper &mapper, const UList< Type > &defaultValues, const bool applyFlip)
 
 Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const bool applyFlip)
 
 Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const Type &defaultValue, const bool applyFlip)
 
 Field (const tmp< Field< Type >> &tmapF, const FieldMapper &mapper, const UList< Type > &defaultValues, const bool applyFlip)
 
 Field (const word &keyword, const dictionary &dict, const label len)
 
constexpr Field () noexcept
 
 Field (const label len)
 
 Field (const label len, const Type &val)
 
 Field (const label len, const Foam::zero)
 
 Field (const Foam::one, const Type &val)
 
 Field (const Foam::one, Type &&val)
 
 Field (const Foam::one, const Foam::zero)
 
 Field (const Field< Type > &fld)
 
 Field (const UList< Type > &list)
 
 Field (Field< Type > &&fld)
 
 Field (List< Type > &&list)
 
 Field (Field< Type > &fld, bool reuse)
 
 Field (const tmp< Field< Type >> &tfld)
 
 Field (Istream &is)
 
tmp< Field< Type > > clone () const
 
void map (const UList< Type > &mapF, const labelUList &mapAddressing)
 
void map (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing)
 
void map (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights)
 
void map (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights)
 
void map (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true)
 
void map (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true)
 
void autoMap (const FieldMapper &map, const bool applyFlip=true)
 
void rmap (const UList< Type > &mapF, const labelUList &mapAddressing)
 
void rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing)
 
void rmap (const UList< Type > &mapF, const labelUList &mapAddressing, const UList< scalar > &weights)
 
void rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing, const UList< scalar > &weights)
 
void negate ()
 
tmp< Field< cmptType > > component (const direction) const
 
void replace (const direction, const UList< cmptType > &)
 
void replace (const direction, const tmp< Field< cmptType >> &)
 
void replace (const direction, const cmptType &)
 
VSForm block (const label start) const
 
tmp< Field< Type > > T () const
 
void writeEntry (const word &keyword, Ostream &os) const
 
SubField< Type > slice (const label pos, label len=-1)
 
const SubField< Type > slice (const label pos, label len=-1) const
 
SubField< Type > slice (const labelRange &range)
 
const SubField< Type > slice (const labelRange &range) const
 
void operator= (const Field< Type > &)
 
void operator= (const tmp< Field< Type >> &)
 
void operator= (const UList< Type > &rhs)
 
void operator= (const SubField< Type > &rhs)
 
void operator= (const IndirectListBase< Type, Addr > &rhs)
 
void operator= (Field< Type > &&rhs)
 
void operator= (List< Type > &&rhs)
 
void operator= (DynamicList< Type, SizeMin > &&rhs)
 
void operator= (const Type &val)
 
void operator= (const Foam::zero)
 
void operator= (const VectorSpace< Form, Cmpt, nCmpt > &)
 
void operator= (const Field< Type > &rhs)
 
void operator= (const tmp< Field > &rhs)
 
void operator= (const UList< Type > &rhs)
 
void operator= (const SubField< Type > &rhs)
 
void operator= (Field< Type > &&rhs)
 
void operator= (List< Type > &&rhs)
 
void operator= (const Type &val)
 
void operator= (const Foam::zero)
 
void operator+= (const UList< Type > &)
 
void operator+= (const tmp< Field< Type >> &)
 
void operator+= (const Type &)
 
void operator-= (const UList< Type > &)
 
void operator-= (const tmp< Field< Type >> &)
 
void operator-= (const Type &)
 
void operator*= (const UList< scalar > &)
 
void operator*= (const tmp< Field< scalar >> &)
 
void operator*= (const scalar &)
 
void operator/= (const UList< scalar > &)
 
void operator/= (const tmp< Field< scalar >> &)
 
void operator/= (const scalar &)
 

Additional Inherited Members

- Public Types inherited from Field< Type >
typedef pTraits< Type >::cmptType cmptType
 
typedef SubField< Type > subField
 
- Static Public Member Functions inherited from Field< Type >
static const Field< Type > & null ()
 
static autoPtr< Field< Type > > New (Istream &is)
 
static tmp< Field< Type > > NewCalculatedType (const Field< Type2 > &f)
 

Detailed Description

template<class Type>
class Foam::IjkField< Type >

Generic templated field type with i-j-k addressing.

Source files

Definition at line 49 of file IjkField.H.

Constructor & Destructor Documentation

◆ IjkField() [1/8]

IjkField
inline

Definition at line 24 of file IjkFieldI.H.

◆ IjkField() [2/8]

IjkField ( const IjkField< Type > &  field)
inline

Definition at line 32 of file IjkFieldI.H.

◆ IjkField() [3/8]

IjkField ( IjkField< Type > &&  field)
inline

Definition at line 40 of file IjkFieldI.H.

◆ IjkField() [4/8]

IjkField ( const labelVector ijk)
inlineexplicit

Definition at line 48 of file IjkFieldI.H.

◆ IjkField() [5/8]

IjkField ( const labelVector ijk,
const Type &  val 
)
inline

Definition at line 57 of file IjkFieldI.H.

◆ IjkField() [6/8]

IjkField ( const labelVector ijk,
const Foam::zero   
)
inline

Definition at line 69 of file IjkFieldI.H.

◆ IjkField() [7/8]

IjkField ( const labelVector ijk,
const UList< Type > &  list 
)
inline

Definition at line 81 of file IjkFieldI.H.

◆ IjkField() [8/8]

IjkField ( const labelVector ijk,
Field< Type > &&  field 
)
inline

Definition at line 104 of file IjkFieldI.H.

Member Function Documentation

◆ ijk() [1/2]

Foam::ijkAddressing & ijk
inline

Definition at line 128 of file IjkFieldI.H.

◆ ijk() [2/2]

ijkAddressing& ijk ( )
inline

◆ sizes() [1/2]

Foam::labelVector & sizes
inline

Definition at line 142 of file IjkFieldI.H.

Referenced by IjkField< Foam::Vector< bool > >::operator=().

Here is the caller graph for this function:

◆ sizes() [2/2]

labelVector& sizes ( )
inline

◆ size()

const Foam::label & size ( const vector::components  cmpt) const
inline

Definition at line 157 of file IjkFieldI.H.

◆ clear()

void clear
inline

Definition at line 166 of file IjkFieldI.H.

◆ resize() [1/2]

void resize ( const labelVector newSizes)

Definition at line 108 of file IjkField.C.

◆ resize() [2/2]

void resize ( const labelVector newSizes,
const Type &  val 
)

Definition at line 25 of file IjkField.C.

◆ operator()() [1/4]

const Type & operator() ( const label  i,
const label  j,
const label  k 
) const
inline

Definition at line 177 of file IjkFieldI.H.

◆ operator()() [2/4]

Type & operator() ( const label  i,
const label  j,
const label  k 
)
inline

Definition at line 189 of file IjkFieldI.H.

◆ operator()() [3/4]

const Type & operator() ( const labelVector ijk) const
inline

Definition at line 201 of file IjkFieldI.H.

◆ operator()() [4/4]

Type & operator() ( const labelVector ijk)
inline

Definition at line 211 of file IjkFieldI.H.

◆ operator=() [1/5]

void operator= ( const IjkField< Type > &  rhs)

Definition at line 117 of file IjkField.C.

◆ operator=() [2/5]

void operator= ( const tmp< IjkField< Type >> &  rhs)

Definition at line 129 of file IjkField.C.

◆ operator=() [3/5]

void operator= ( IjkField< Type > &&  rhs)
inline

Definition at line 220 of file IjkFieldI.H.

◆ operator=() [4/5]

void operator= ( const Type &  val)
inline

Definition at line 234 of file IjkFieldI.H.

◆ operator=() [5/5]

void operator= ( const Foam::zero  )
inline

Definition at line 241 of file IjkFieldI.H.


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