NEST  2.6.0,not_revisioned_source_dir@0
charcode.h
Go to the documentation of this file.
1 /*
2  * charcode.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef CharCode_H
24 #define CharCode_H
25 /*
26 
27  Character codes for the scanner
28 */
29 
30 /***************************************************************/
31 /* class CharCode */
32 /***************************************************************/
33 #include <vector>
34 #include <cassert>
35 #include <cstddef>
36 
37 using std::size_t;
38 
39 class CharCode : public std::vector<size_t> {
40 public:
41  CharCode(size_t, size_t);
42 
43  void Range(size_t, char, char);
44  void Group(size_t, const char*);
45  size_t operator()( char) const;
46 };
47 
48 
49 #endif
void Range(size_t, char, char)
Definition: charcode.cc:30
CharCode(size_t, size_t)
Definition: charcode.cc:25
size_t operator()(char) const
Definition: charcode.cc:52
void Group(size_t, const char *)
Definition: charcode.cc:42
Definition: charcode.h:39