OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

SortableList Class Template Reference

Inheritance diagram for SortableList:

Inheritance graph
[legend]
Collaboration diagram for SortableList:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 57 of file SortableList.H.


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 labelList & indices () 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 > &)

Classes

class  less
 Less function class used by the sort function. More...

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 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).

void operator= ( const SortableList< Type > &   ) 


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd