keyTypeI.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 inline Foam::keyType::keyType()
00034 :
00035 word(),
00036 isPattern_(false)
00037 {}
00038
00039
00040 inline Foam::keyType::keyType(const keyType& s)
00041 :
00042 word(s, false),
00043 isPattern_(s.isPattern())
00044 {}
00045
00046
00047 inline Foam::keyType::keyType(const word& s)
00048 :
00049 word(s, false),
00050 isPattern_(false)
00051 {}
00052
00053
00054
00055 inline Foam::keyType::keyType(const string& s)
00056 :
00057 word(s, false),
00058 isPattern_(true)
00059 {}
00060
00061
00062
00063 inline Foam::keyType::keyType(const char* s)
00064 :
00065 word(s, false),
00066 isPattern_(false)
00067 {}
00068
00069
00070
00071 inline Foam::keyType::keyType
00072 (
00073 const std::string& s,
00074 const bool isPattern
00075 )
00076 :
00077 word(s, false),
00078 isPattern_(isPattern)
00079 {}
00080
00081
00082
00083
00084 inline bool Foam::keyType::isPattern() const
00085 {
00086 return isPattern_;
00087 }
00088
00089
00090
00091
00092 inline const Foam::keyType& Foam::keyType::operator=(const keyType& s)
00093 {
00094
00095 string::operator=(s);
00096 isPattern_ = s.isPattern_;
00097 return *this;
00098 }
00099
00100
00101 inline const Foam::keyType& Foam::keyType::operator=(const word& s)
00102 {
00103 word::operator=(s);
00104 isPattern_ = false;
00105 return *this;
00106 }
00107
00108
00109 inline const Foam::keyType& Foam::keyType::operator=(const string& s)
00110 {
00111
00112 string::operator=(s);
00113 isPattern_ = true;
00114 return *this;
00115 }
00116
00117
00118 inline const Foam::keyType& Foam::keyType::operator=(const char* s)
00119 {
00120
00121 string::operator=(s);
00122 isPattern_ = false;
00123 return *this;
00124 }
00125
00126
00127
Copyright © 2000-2009 OpenCFD Ltd