A class for handling keywords in dictionaries. More...
#include <OpenFOAM/keyType.H>
A class for handling keywords in dictionaries.
A keyType is the keyword of a dictionary. It differs from word in that it accepts patterns (regular expressions).
Definition at line 58 of file keyType.H.
Public Member Functions | |
keyType () | |
Construct null.
| |
keyType (const keyType &) | |
Construct as copy.
| |
keyType (const word &) | |
Construct as copy of word.
| |
keyType (const string &) | |
Construct as copy of string. Expect it to be regular expression.
| |
keyType (const char *) | |
Construct as copy of character array.
| |
keyType (const std::string &, const bool isPattern) | |
Construct as copy of std::string.
| |
keyType (Istream &) | |
Construct from Istream.
| |
bool | isPattern () const |
Should be treated as a match rather than a literal string.
| |
const keyType & | operator= (const keyType &) |
const keyType & | operator= (const word &) |
const keyType & | operator= (const string &) |
Assign from regular expression.
| |
const keyType & | operator= (const char *) |
Friends | |
Istream & | operator>> (Istream &, keyType &) |
Ostream & | operator<< (Ostream &, const keyType &) |
keyType | ( | ) | [inline]
|
Construct null.
Definition at line 32 of file keyTypeI.H.
Construct as copy.
Definition at line 39 of file keyTypeI.H.
Construct as copy of word.
Definition at line 46 of file keyTypeI.H.
Construct as copy of string. Expect it to be regular expression.
Definition at line 54 of file keyTypeI.H.
keyType | ( | const char * | s ) | [inline]
|
Construct as copy of character array.
Definition at line 62 of file keyTypeI.H.
keyType | ( | const std::string & | s, |
const bool | isPattern | ||
) | [inline]
|
Construct as copy of std::string.
Definition at line 71 of file keyTypeI.H.
Construct from Istream.
Definition at line 34 of file keyTypeIO.C.
bool isPattern | ( | ) | const [inline]
|
Should be treated as a match rather than a literal string.
Definition at line 83 of file keyTypeI.H.
Referenced by dictionary::add(), dictionary::changeKeyword(), Ostream::write(), and Ostream::writeKeyword().
const Foam::keyType & operator= | ( | const keyType & | s ) | [inline]
|
Definition at line 91 of file keyTypeI.H.
const Foam::keyType & operator= | ( | const word & | s ) | [inline]
|
const Foam::keyType & operator= | ( | const string & | s ) | [inline]
|
const Foam::keyType & operator= | ( | const char * | s ) | [inline]
|
Reimplemented from word.
Definition at line 117 of file keyTypeI.H.