OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

word Class Reference

Inheritance diagram for word:

Inheritance graph
[legend]
Collaboration diagram for word:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 61 of file word.H.


Public Member Functions

 word ()
 Construct null.
 word (const word &w)
 Construct as copy.
 word (const char *)
 Construct as copy of character array.
 word (const string &)
 Construct as copy of string.
 word (const std::string &)
 Construct as copy of std::string.
 word (Istream &is)
 Construct from Istream.
void operator= (const word &)
void operator= (const string &)
void operator= (const std::string &)
void operator= (const char *)

Static Public Member Functions

static bool valid (char)
 Is this character valid for a word.

Static Public Attributes

static int debug
 Debug switch.
static const word null
 Null word.

Friends

word operator & (const word &, const word &)
Istream & operator>> (Istream &, word &)
Ostream & operator<< (Ostream &, const word &)

Constructor & Destructor Documentation

word (  )  [inline]

Construct null.

Definition at line 65 of file wordI.H.

word ( const word &  w  )  [inline]

Construct as copy.

Definition at line 59 of file wordI.H.

word ( const char *   )  [inline]

Construct as copy of character array.

Definition at line 87 of file wordI.H.

word ( const string &   )  [inline]

Construct as copy of string.

Definition at line 71 of file wordI.H.

word ( const std::string &   )  [inline]

Construct as copy of std::string.

Definition at line 79 of file wordI.H.

word ( Istream &  is  ) 

Construct from Istream.


Member Function Documentation

bool valid ( char   )  [inline, static]

Is this character valid for a word.

Definition at line 97 of file wordI.H.

void operator= ( const word &   )  [inline]

Definition at line 113 of file wordI.H.

void operator= ( const string &   )  [inline]

Definition at line 119 of file wordI.H.

void operator= ( const std::string &   )  [inline]

Definition at line 126 of file wordI.H.

void operator= ( const char *   )  [inline]

Definition at line 133 of file wordI.H.


Friends And Related Function Documentation

word operator & ( const word &  a,
const word &  b 
) [friend]

Definition at line 142 of file wordI.H.

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

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


Member Data Documentation

int debug [static]

Debug switch.

Reimplemented from string.

Definition at line 74 of file word.H.

const word null [static]

Null word.

Reimplemented from string.

Definition at line 77 of file word.H.


The documentation for this class was generated from the following files:
  • src/OpenFOAM/primitives/strings/word/word.H
  • src/OpenFOAM/primitives/strings/word/wordI.H
Copyright © 2000-2007 OpenCFD Ltd