MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / Keywords

Class Keywords

src/dsql/Keywords.h:34–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace Jrd
33{
34 class Keywords final
35 {
36 public:
37 class Allocator final
38 {
39 public:
40 static Keywords* create();
41
42 static void destroy(Keywords* instance)
43 {
44 delete instance;
45 }
46 };
47
48 struct Keyword
49 {
50 int keyword;
51 MetaName* str;
52 bool nonReserved;
53 };
54
55 public:
56 Keywords(MemoryPool& pool);
57
58 ~Keywords()
59 {
60 for (auto& pair : map)
61 delete pair.second.str;
62 }
63
64 auto get(const MetaName& str) const
65 {
66 return map.get(str);
67 }
68
69 auto begin() const
70 {
71 return map.begin();
72 }
73
74 auto end() const
75 {
76 return map.end();
77 }
78
79 private:
80 Firebird::LeftPooledMap<MetaName, Keyword> map;
81 };
82} // namespace Jrd
83
84#endif // DSQL_KEYWORDS_H

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected