OpenFOAM logo
Open Source CFD Toolkit

SortableList Class Template Reference

Inheritance diagram for SortableList:

Inheritance graph
[legend]
Collaboration diagram for SortableList:

Collaboration graph
[legend]
List of all members.

template<class Type>
class Foam::SortableList< Type >


Public Member Functions

 SortableList (const List< Type > &)
 Construct from List, sorting the elements. Starts with indices set.
 SortableList (const List< Type > &, const labelList &)
 Construct from List, sorting the elements. Starts with indices.
 SortableList (const label size)
 Construct given size. Sort later on.
 SortableList (const label size, const Type &)
 Construct given size and initial value. Sort later on.
 SortableList (const SortableList< Type > &)
 Construct as copy.
const labelListindices () const
 Return the list of sorted point indices.
void setSize (const label)
 Size the list (shrink or grow followed by sort).
void sort ()
 Sort the list (if changed after construction time).
void operator= (const SortableList< Type > &)

Constructor & Destructor Documentation

SortableList const List< Type > &   ) 
 

Construct from List, sorting the elements. Starts with indices set.

to index in argument

SortableList const List< Type > &  ,
const labelList
 

Construct from List, sorting the elements. Starts with indices.

as given

SortableList const label  size  ) 
 

Construct given size. Sort later on.

SortableList const label  size,
const Type & 
 

Construct given size and initial value. Sort later on.

SortableList const SortableList< Type > &   ) 
 

Construct as copy.


Member Function Documentation

const labelList& indices  )  const [inline]
 

Return the list of sorted point indices.

Definition at line 117 of file SortableList.H.

void operator= const SortableList< Type > &   ) 
 

void setSize const   label  ) 
 

Size the list (shrink or grow followed by sort).

Reimplemented from List< Type >.

void sort  ) 
 

Sort the list (if changed after construction time).


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org