MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / tokeniser

Class tokeniser

src/OpenFOAM/dimensionSet/dimensionSet.H:155–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 // Private classes
154
155 class tokeniser
156 {
157 // Private data
158
159 Istream& is_;
160
161 List<token> tokens_;
162
163 label start_;
164
165 label size_;
166
167
168 // Private Member Functions
169
170 void push(const token&);
171
172 token pop();
173
174 void unpop(const token&);
175
176 public:
177
178 // Constructors
179
180 tokeniser(Istream&);
181
182
183 // Member Functions
184
185 Istream& stream()
186 {
187 return is_;
188 }
189
190 bool hasToken() const;
191
192 token nextToken();
193
194 void putBack(const token&);
195
196 void splitWord(const word&);
197
198 static bool valid(char c);
199
200 static label priority(const token& t);
201 };
202
203
204 //- Reset exponents to nearest integer if close to it. Used to

Callers 1

dimensionSetIO.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected