Public Member Functions | Static Public Member Functions
GatherBase Class Reference
Inheritance diagram for GatherBase:
Inheritance graph
[legend]

Public Member Functions

template<class Type >
Type flatten (const List< Type > lst)
 

Static Public Member Functions

template<class T >
static T flatten (const List< T >)
 Flatten: appends all elements of list into one single list. More...
 
template<class DataType , class IndexType , class AddOp >
static IndexType offset (const List< DataType > &values, const List< IndexType > &indices, AddOp aop)
 Flatten and offset 'Gathered' indices (into value) so they. More...
 

Detailed Description

Source files

Definition at line 48 of file GatherBase.H.

Member Function Documentation

◆ flatten() [1/2]

static T flatten ( const List< T )
static

Flatten: appends all elements of list into one single list.

Used to collapse 'Gathered' data.

◆ offset()

IndexType offset ( const List< DataType > &  values,
const List< IndexType > &  indices,
AddOp  aop 
)
static

Flatten and offset 'Gathered' indices (into value) so they.

remain valid with respect to values (after they have been flattened)

Definition at line 65 of file GatherBase.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, List::size(), and Foam::sum().

Here is the call graph for this function:

◆ flatten() [2/2]

Type flatten ( const List< Type >  lst)

Definition at line 36 of file GatherBase.C.

References forAll, List::size(), and Foam::sum().

Here is the call graph for this function:

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