source: trunk/symbol_table/src/gid_factory.hpp @ 2027

Last change on this file since 2027 was 2027, checked in by ksherdy, 7 years ago

Added GIDFactory class member. Each symbol table maintains a set of GIDs.

File size: 230 bytes
Line 
1#ifndef GIDFACTORY_HPP
2#define GIDFACTORY_HPP
3
4typedef uint32_t gid_type;
5
6class GIDFactory {
7public:
8    GIDFactory():value(0) {}
9    uint64_t next() { return value++; }
10private:
11    uint64_t value;
12};
13
14
15#endif // GIDFACTORY_HPP
Note: See TracBrowser for help on using the repository browser.