Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
anonymous_namespace{sm_keywords.cpp}::StringKeywordMatchItem Class Reference

Description

Single item in the list of strings/regular expressions to match.

Public Member Functions

 StringKeywordMatchItem (gmx::SelectionStringMatchType matchType, const char *str)
 Constructs a matcher from a string. More...
 
bool match (gmx::SelectionStringMatchType matchType, const char *value) const
 Checks whether this item matches a string. More...
 

Constructor & Destructor Documentation

anonymous_namespace{sm_keywords.cpp}::StringKeywordMatchItem::StringKeywordMatchItem ( gmx::SelectionStringMatchType  matchType,
const char *  str 
)
inline

Constructs a matcher from a string.

Parameters
[in]matchTypeString matching type.
[in]strString to use for matching.

Member Function Documentation

bool anonymous_namespace{sm_keywords.cpp}::StringKeywordMatchItem::match ( gmx::SelectionStringMatchType  matchType,
const char *  value 
) const
inline

Checks whether this item matches a string.

Parameters
[in]matchTypeString matching type.
[in]valueString to match.
Returns
true if this item matches value.

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