FieldListSlice< Type > Class Template Reference

Class to provide a list-like interface to a slice through a PtrList of fields. More...

Public Member Functions

 FieldListSlice (const UPtrList< const Field< Type >> &fields, const label elementi)
 Construct from a list of fields and an element index. More...
 
 FieldListSlice (const UPtrList< Field< Type >> &fields, const label elementi)
 Construct from a list of fields and an element index. More...
 
label size () const
 Return the size of the slice. More...
 
const Type & operator[] (const label fieldi) const
 Access an element. More...
 

Detailed Description

template<class Type>
class Foam::FieldListSlice< Type >

Class to provide a list-like interface to a slice through a PtrList of fields.

Definition at line 49 of file FieldListSlice.H.

Constructor & Destructor Documentation

◆ FieldListSlice() [1/2]

FieldListSlice ( const UPtrList< const Field< Type >> &  fields,
const label  elementi 
)
inline

Construct from a list of fields and an element index.

Definition at line 65 of file FieldListSlice.H.

◆ FieldListSlice() [2/2]

FieldListSlice ( const UPtrList< Field< Type >> &  fields,
const label  elementi 
)
inline

Construct from a list of fields and an element index.

Definition at line 76 of file FieldListSlice.H.

Member Function Documentation

◆ size()

label size ( ) const
inline

Return the size of the slice.

Definition at line 93 of file FieldListSlice.H.

References UPtrList< T >::size().

Here is the call graph for this function:

◆ operator[]()

const Type& operator[] ( const label  fieldi) const
inline

Access an element.

Definition at line 102 of file FieldListSlice.H.


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