A collection of scalar bounds to be used as a unary predicate. More...
Public Member Functions | |
scalarRanges () | |
Construct null. More... | |
scalarRanges (const std::string &str, bool verbose=true) | |
Construct by parsing string for scalar ranges. More... | |
bool | match (const scalar &value) const |
Match any condition in the list. More... | |
bool | operator() (const scalar &value) const |
Identical to match(), for use as a predicate. More... | |
Public Member Functions inherited from List< scalarRange > | |
constexpr | List () noexcept |
Null constructor. More... | |
List (const label len) | |
Construct with given size. More... | |
List (const label len, const scalarRange &val) | |
Construct with given size and value for all elements. More... | |
List (const label len, const zero) | |
Construct with given size initializing all elements to zero. More... | |
List (const one, const scalarRange &val) | |
Construct with length=1, copying the value as the only content. More... | |
List (const one, scalarRange &&val) | |
Construct with length=1, moving the value as the only content. More... | |
List (const one, const zero) | |
Construct with length=1, initializing content to zero. More... | |
List (const List< scalarRange > &a) | |
Copy construct from list. More... | |
List (const UList< scalarRange > &a) | |
Copy construct contents from list. More... | |
List (List< scalarRange > &a, bool reuse) | |
Construct as copy or re-use as specified. More... | |
List (const UList< scalarRange > &list, const labelUList &mapAddressing) | |
Construct as subset. More... | |
List (InputIterator begIter, InputIterator endIter) | |
Construct given begin/end iterators. More... | |
List (const FixedList< scalarRange, N > &list) | |
Construct as copy of FixedList<T, N> More... | |
List (const PtrList< scalarRange > &list) | |
Construct as copy of PtrList<T> More... | |
List (const SLList< scalarRange > &list) | |
Construct as copy of SLList<T> More... | |
List (const IndirectListBase< scalarRange, Addr > &list) | |
Construct as copy of IndirectList contents. More... | |
List (std::initializer_list< scalarRange > list) | |
Construct from an initializer list. More... | |
List (List< scalarRange > &&list) | |
Move construct from List. More... | |
List (DynamicList< scalarRange, SizeMin > &&list) | |
Move construct from DynamicList. More... | |
List (SortableList< scalarRange > &&list) | |
Move construct from SortableList. More... | |
List (SLList< scalarRange > &&list) | |
Move construct from SLList. More... | |
List (Istream &is) | |
Construct from Istream. More... | |
autoPtr< List< scalarRange > > | clone () const |
Clone. More... | |
~List () | |
Destructor. More... | |
void | resize (const label newSize) |
Adjust allocated size of list. More... | |
void | resize (const label newSize, const scalarRange &val) |
Adjust allocated size of list and set val for new elements. More... | |
void | resize (const label newSize) |
void | setSize (const label newSize) |
Alias for resize(const label) More... | |
void | setSize (const label newSize, const scalarRange &val) |
Alias for resize(const label, const T&) More... | |
void | clear () |
Clear the list, i.e. set size to zero. More... | |
void | append (const scalarRange &val) |
Append an element at the end of the list. More... | |
void | append (scalarRange &&val) |
Move append an element at the end of the list. More... | |
void | append (const UList< scalarRange > &list) |
Append a List to the end of this list. More... | |
void | append (const IndirectListBase< scalarRange, Addr > &list) |
Append IndirectList contents at the end of this list. More... | |
void | transfer (List< scalarRange > &list) |
void | transfer (DynamicList< scalarRange, SizeMin > &list) |
void | transfer (SortableList< scalarRange > &list) |
scalarRange & | newElmt (const label i) |
void | operator= (const UList< scalarRange > &a) |
Assignment to UList operator. Takes linear time. More... | |
void | operator= (const List< scalarRange > &list) |
Assignment operator. Takes linear time. More... | |
void | operator= (const SLList< scalarRange > &list) |
Assignment to SLList operator. Takes linear time. More... | |
void | operator= (const IndirectListBase< scalarRange, Addr > &list) |
Assignment from IndirectList. Takes linear time. More... | |
void | operator= (std::initializer_list< scalarRange > list) |
Assignment to an initializer list. More... | |
void | operator= (const scalarRange &val) |
Assignment of all entries to the given value. More... | |
void | operator= (const zero) |
Assignment of all entries to zero. More... | |
void | operator= (List< scalarRange > &&list) |
Move assignment. Takes constant time. More... | |
void | operator= (DynamicList< scalarRange, SizeMin > &&list) |
Move assignment. Takes constant time. More... | |
void | operator= (SortableList< scalarRange > &&list) |
Move assignment. Takes constant time. More... | |
void | operator= (SLList< scalarRange > &&list) |
Move assignment. Takes constant time. More... | |
void | shallowCopy (const UList< scalarRange > &)=delete |
No shallowCopy permitted. More... | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | set (const label i, bool val=true) |
A bitSet::set() method for a list of bool. More... | |
Static Public Member Functions | |
static scalarRanges | parse (const std::string &str, bool verbose=true) |
Construct by parsing string for scalar ranges. More... | |
Static Public Member Functions inherited from List< scalarRange > | |
static const List< scalarRange > & | null () |
Return a null List. More... | |
Additional Inherited Members | |
Public Types inherited from List< scalarRange > | |
typedef SubList< scalarRange > | subList |
Declare type of subList. More... | |
A collection of scalar bounds to be used as a unary predicate.
Definition at line 54 of file scalarRanges.H.
|
inline |
Construct null.
Definition at line 30 of file scalarRangesI.H.
|
inlineexplicit |
Construct by parsing string for scalar ranges.
The individual items are space, comma or semicolon delimited. Optionally report when any range failed to parse
Definition at line 36 of file scalarRangesI.H.
|
static |
Construct by parsing string for scalar ranges.
The individual items are space, comma or semicolon delimited.
Definition at line 34 of file scalarRanges.C.
References Foam::endl(), Foam::Info, n, range, s, and Foam::stringOps::splitAny().
|
inline |
Match any condition in the list.
Definition at line 44 of file scalarRangesI.H.
References range.
|
inline |
Identical to match(), for use as a predicate.
Definition at line 60 of file scalarRangesI.H.
References Foam::stringOps::match().
Referenced by timeSelector::selected().