functionNameI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
27 
29 :
30  word()
31 {}
32 
33 
35 :
36  word(v)
37 {}
38 
39 
41 :
42  word(w)
43 {}
44 
45 
47 (
48  const string& s,
49  const bool doStripInvalid
50 )
51 :
52  word(s, doStripInvalid)
53 {}
54 
55 
57 (
58  const std::string& s,
59  const bool doStripInvalid
60 )
61 :
62  word(s, doStripInvalid)
63 {}
64 
65 
67 (
68  const char* s,
69  const bool doStripInvalid
70 )
71 :
72  word(s, doStripInvalid)
73 {}
74 
75 
76 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
77 
79 {
80  word::operator=(s);
81 }
82 
83 
84 inline void Foam::functionName::operator=(const word& s)
85 {
86  word::operator=(s);
87 }
88 
89 
90 inline void Foam::functionName::operator=(const string& s)
91 {
92  word::operator=(s);
93 }
94 
95 
96 inline void Foam::functionName::operator=(const std::string& s)
97 {
98  word::operator=(s);
99 }
100 
101 
102 inline void Foam::functionName::operator=(const char* s)
103 {
104  word::operator=(s);
105 }
106 
107 
108 // ************************************************************************* //
void operator=(const word &)
Definition: wordI.H:141
word()
Construct null.
Definition: wordI.H:59
A functionName is a word starting with &#39;#&#39;.
Definition: functionName.H:57
A class for handling words, derived from string.
Definition: word.H:59
functionName()
Construct null.
Definition: functionNameI.H:28
void operator=(const functionName &)
Definition: functionNameI.H:78