foundOp< StringType > Struct Template Reference

Functor to determine if a string is exists in a list of strings. More...

Collaboration diagram for foundOp< StringType >:
[legend]

Public Member Functions

 foundOp (const UList< StringType > &list)
 
bool operator() (const std::string &text) const
 

Public Attributes

const UList< StringType > & values
 

Detailed Description

template<class StringType>
struct Foam::stringListOps::foundOp< StringType >

Functor to determine if a string is exists in a list of strings.

For example,

void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
Functor to determine if a string is exists in a list of strings.

Definition at line 345 of file stringListOps.H.

Constructor & Destructor Documentation

◆ foundOp()

foundOp ( const UList< StringType > &  list)
inline

Definition at line 349 of file stringListOps.H.

Member Function Documentation

◆ operator()()

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

Definition at line 354 of file stringListOps.H.

References UList< T >::found(), and foundOp< StringType >::values.

Here is the call graph for this function:

Member Data Documentation

◆ values

const UList<StringType>& values

Definition at line 347 of file stringListOps.H.

Referenced by foundOp< StringType >::operator()().


The documentation for this struct was generated from the following file: