Loading...
Searching...
No Matches
wordRes::matcher Struct Reference

Functor wrapper of a list of wordRe for matching. More...

#include <wordRes.H>

Public Member Functions

 matcher (const UList< wordRe > &selectors) noexcept
 Construct with select matcher(s).
bool empty () const noexcept
 No selectors defined.
bool operator() (const std::string &text) const
 Apply matcher predicate.

Detailed Description

Functor wrapper of a list of wordRe for matching.

Definition at line 230 of file wordRes.H.

Constructor & Destructor Documentation

◆ matcher()

matcher ( const UList< wordRe > & selectors)
inlineexplicitnoexcept

Construct with select matcher(s).

Definition at line 196 of file wordResI.H.

References Foam::noexcept.

Member Function Documentation

◆ empty()

bool empty ( ) const
inlinenoexcept

No selectors defined.

Definition at line 216 of file wordResI.H.

References Foam::noexcept.

◆ operator()()

bool operator() ( const std::string & text) const
inline

Apply matcher predicate.

Returns
false if no selectors are specified
true if text matches any of the selectors

Definition at line 228 of file wordResI.H.

References wordRes::match().

Here is the call graph for this function:

The documentation for this struct was generated from the following files:
  • src/OpenFOAM/primitives/strings/wordRes/wordRes.H
  • src/OpenFOAM/primitives/strings/wordRes/wordResI.H