FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

ParSortableList< Type > Class Template Reference

Implementation of PSRS parallel sorting routine. More...

#include <OpenFOAM/ParSortableList.H>


Detailed Description

template<class Type>
class Foam::ParSortableList< Type >

Implementation of PSRS parallel sorting routine.

From "On the Versatility of Parallel Sorting by Regular Sampling" Xiaobo Li et. all.

Construct from list of things to sort (uses SortableList, 'thing' should implement >, ==).

Will contain sorted data and in

Can also be constructed from size, filled at ease and then sort()'ed.

Source files

Definition at line 70 of file ParSortableList.H.

Inheritance diagram for ParSortableList< Type >:
Collaboration diagram for ParSortableList< Type >:

List of all members.

Classes

class  taggedValue
 Private class for sorting. Sorts on value_.

Public Member Functions

 ParSortableList (const UList< Type > &)
 Construct from List, sorting the elements.
 ParSortableList (const label size)
 Construct given size. Sort later on.
void  sort ()
 (stable) sort the list (if changed after construction time)
const labelList &  indices () const
 Return the list of sorted point indices.
const labelList &  procs () const
 Return the list of processor number.

Constructor & Destructor Documentation

ParSortableList ( const UList< Type > &   values  )

Construct from List, sorting the elements.

Definition at line 127 of file ParSortableList.C.

References ParSortableList< Type >::sort().

ParSortableList ( const label   size  )

Construct given size. Sort later on.

Definition at line 139 of file ParSortableList.C.


Member Function Documentation

const labelList& indices (  ) const [inline]

Return the list of sorted point indices.

Definition at line 187 of file ParSortableList.H.

const labelList& procs (  ) const [inline]

Return the list of processor number.

Definition at line 193 of file ParSortableList.H.


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