Public Member Functions | Static Public Member Functions | List of all members
scalarRanges Class Reference

A collection of scalar bounds to be used as a unary predicate. More...

Inheritance diagram for scalarRanges:
Inheritance graph
[legend]
Collaboration diagram for scalarRanges:
Collaboration graph
[legend]

Public Member Functions

constexpr scalarRanges () noexcept=default
 
 scalarRanges (const std::string &str, bool report=true)
 
bool match (const scalar &value) const
 
bool operator() (const scalar &value) const
 
- Public Member Functions inherited from List< scalarRange >
constexpr List () noexcept
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const List< T > &a)
 
 List (const UList< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
 List (const UList< T > &list, const FixedList< label, N > &indices)
 
 List (const FixedList< T, N > &list)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
 List (const IndirectListBase< T, Addr > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
 List (DynamicList< T, SizeMin > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
 List (Istream &is)
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const UList< T > &a)
 
 List (const List< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
constexpr List () noexcept
 
 List (Istream &is)
 
autoPtr< List< T > > clone () const
 
 ~List ()
 
void clear ()
 
void resize (const label len)
 
void resize (const label len, const T &val)
 
void resize (const label newLen)
 
void resize_nocopy (const label len)
 
void setSize (const label n)
 
void setSize (const label n, const T &val)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
void append (const IndirectListBase< T, Addr > &list)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
label appendUniq (const T &val)
 
void transfer (List< T > &list)
 
void transfer (DynamicList< T, SizeMin > &list)
 
void transfer (SortableList< T > &list)
 
void transfer (List< T > &list)
 
void transfer (SortableList< T > &list)
 
TnewElmt (const label i)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (const IndirectListBase< T, Addr > &list)
 
void operator= (const FixedList< T, N > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
void operator= (List< T > &&list)
 
void operator= (DynamicList< T, SizeMin > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (List< T > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
IstreamreadList (Istream &is)
 
IstreamreadList (Istream &is)
 
IstreamreadList (Istream &is)
 
void shallowCopy (const UList< T > &)=delete
 
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 

Static Public Member Functions

static scalarRanges parse (const std::string &str, bool report=true)
 
- Static Public Member Functions inherited from List< scalarRange >
static const List< T > & null ()
 

Additional Inherited Members

- Public Types inherited from List< scalarRange >
typedef SubList< TsubList
 

Detailed Description

A collection of scalar bounds to be used as a unary predicate.

See also
Foam::predicates::scalars
Source files

Definition at line 51 of file scalarRanges.H.

Constructor & Destructor Documentation

◆ scalarRanges() [1/2]

constexpr scalarRanges ( )
constexprdefaultnoexcept

◆ scalarRanges() [2/2]

scalarRanges ( const std::string &  str,
bool  report = true 
)
inlineexplicit
Parameters
reportReport when any range fails to parse

Definition at line 23 of file scalarRangesI.H.

Member Function Documentation

◆ parse()

Foam::scalarRanges parse ( const std::string &  str,
bool  report = true 
)
static
Parameters
reportReport when any range fails to parse

Definition at line 27 of file scalarRanges.C.

References Foam::endl(), Foam::Info, n, range, List::resize(), s, and Foam::stringOps::splitAny().

Here is the call graph for this function:

◆ match()

bool match ( const scalar &  value) const
inline

Definition at line 31 of file scalarRangesI.H.

References range.

Referenced by timeSelector::selected().

Here is the caller graph for this function:

◆ operator()()

bool operator() ( const scalar &  value) const
inline

Definition at line 47 of file scalarRangesI.H.

References Foam::stringOps::match().

Here is the call graph for this function:

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