OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

keyType Class Reference

A class for handling keywords in dictionaries. More...

Inheritance diagram for keyType:
Collaboration diagram for keyType:

List of all members.


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 keyTypeoperator= (const keyType &)
const keyTypeoperator= (const word &)
const keyTypeoperator= (const string &)
 Assign from regular expression.
const keyTypeoperator= (const char *)

Friends

Istreamoperator>> (Istream &, keyType &)
Ostreamoperator<< (Ostream &, const keyType &)

Detailed Description

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).

Source files

Definition at line 53 of file keyType.H.


Constructor & Destructor Documentation

keyType (  )  [inline]

Construct null.

Definition at line 24 of file keyTypeI.H.

keyType ( const keyType s  )  [inline]

Construct as copy.

Definition at line 31 of file keyTypeI.H.

keyType ( const word s  )  [inline]

Construct as copy of word.

Definition at line 38 of file keyTypeI.H.

keyType ( const string s  )  [inline]

Construct as copy of string. Expect it to be regular expression.

Definition at line 46 of file keyTypeI.H.

keyType ( const char *  s  )  [inline]

Construct as copy of character array.

Definition at line 54 of file keyTypeI.H.

keyType ( const std::string &  s,
const bool  isPattern 
) [inline]

Construct as copy of std::string.

Definition at line 63 of file keyTypeI.H.

keyType ( Istream is  ) 

Construct from Istream.

Definition at line 27 of file keyTypeIO.C.


Member Function Documentation

bool isPattern (  )  const [inline]

Should be treated as a match rather than a literal string.

Definition at line 75 of file keyTypeI.H.

Referenced by Ostream::writeKeyword().

Here is the caller graph for this function:

const Foam::keyType & operator= ( const keyType s  )  [inline]

Definition at line 83 of file keyTypeI.H.

const Foam::keyType & operator= ( const word s  )  [inline]

Reimplemented from word.

Definition at line 92 of file keyTypeI.H.

const Foam::keyType & operator= ( const string s  )  [inline]

Assign from regular expression.

Reimplemented from word.

Definition at line 100 of file keyTypeI.H.

References word::operator=().

Here is the call graph for this function:

const Foam::keyType & operator= ( const char *  s  )  [inline]

Reimplemented from word.

Definition at line 109 of file keyTypeI.H.


Friends And Related Function Documentation

Istream& operator>> ( Istream ,
keyType  
) [friend]

Ostream& operator<< ( Ostream ,
const keyType  
) [friend]


The documentation for this class was generated from the following files:
  • src/OpenFOAM/primitives/strings/keyType/keyType.H
  • src/OpenFOAM/primitives/strings/keyType/keyTypeI.H
  • src/OpenFOAM/primitives/strings/keyType/keyTypeIO.C
Copyright © 2000-2009 OpenCFD Ltd