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

sortLabelledTri Class Reference

Helper class which when constructed with a triSurface sorts the faces according to region number (or rather constructs a mapping). More...

#include <triSurface/sortLabelledTri.H>


Detailed Description

Helper class which when constructed with a triSurface sorts the faces according to region number (or rather constructs a mapping).

Source files

Definition at line 102 of file sortLabelledTri.H.

Inheritance diagram for sortLabelledTri:
Collaboration diagram for sortLabelledTri:

List of all members.

Public Member Functions

 sortLabelledTri (const triSurface &)
 Construct from surface, sorting the faces according to patch.
void  indices (labelList &) const
 Set the labelList to those of sorted point indices.
labelList  indices () const
 Return the list of sorted point indices.

Constructor & Destructor Documentation

sortLabelledTri ( const triSurface &   surf  )

Construct from surface, sorting the faces according to patch.

Definition at line 51 of file sortLabelledTri.C.

References forAll, UList< surfAndLabel >::operator[](), and Foam::sort().


Member Function Documentation

void indices ( labelList &   newIndices  ) const

Set the labelList to those of sorted point indices.

Definition at line 69 of file sortLabelledTri.C.

References forAll, UList< surfAndLabel >::operator[](), List< T >::setSize(), and List< surfAndLabel >::size().

labelList indices (  ) const

Return the list of sorted point indices.

Definition at line 80 of file sortLabelledTri.C.

References List< surfAndLabel >::size().


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