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

scalarRanges Class Reference

A List of scalarRange. More...

#include <OpenFOAM/scalarRanges.H>


Detailed Description

A List of scalarRange.

Source files

Definition at line 50 of file scalarRanges.H.

Inheritance diagram for scalarRanges:
Collaboration diagram for scalarRanges:

List of all members.

Public Member Functions

 scalarRanges ()
 Construct Null.
 scalarRanges (Istream &)
 Construct from Istream.
bool  selected (const scalar &) const
 Return true if the given value is within the ranges.
List< bool >  selected (const List< scalar > &) const
 Return the set of selected entries in the given list.
List< scalar >  select (const List< scalar > &) const
 Select a list of values that are within the ranges.
void  inplaceSelect (List< scalar > &) const
 Select a list of values that are within the ranges.

Constructor & Destructor Documentation

scalarRanges (  )

Construct Null.

Definition at line 32 of file scalarRanges.C.

scalarRanges ( Istream &   is  )

Construct from Istream.

The list items are comma-delimited.

Definition at line 38 of file scalarRanges.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), IOstream::good(), scalarRange::isDefined(), and List< scalarRange >::transfer().


Member Function Documentation

bool selected ( const scalar &   value  ) const

Return true if the given value is within the ranges.

Definition at line 59 of file scalarRanges.C.

References forAll.

Referenced by timeSelector::selected().

Foam::List< bool > selected ( const List< scalar > &   values  ) const

Return the set of selected entries in the given list.

that are within the ranges

Definition at line 74 of file scalarRanges.C.

References forAll, List< T >::size(), and timeIndex.

Foam::List< Foam::scalar > select ( const List< scalar > &   values  ) const

Select a list of values that are within the ranges.

Definition at line 121 of file scalarRanges.C.

References Foam::subset().

void inplaceSelect ( List< scalar > &   values  ) const

Select a list of values that are within the ranges.

Definition at line 130 of file scalarRanges.C.

References Foam::inplaceSubset().


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