| 1 | #include "relmodel.hh" |
|---|---|
| 2 | |
| 3 | map<string, sqltype *> sqltype::typemap; |
| 4 | |
| 5 | sqltype *sqltype::get(string n) { |
| 6 | if (typemap.count(n)) |
| 7 | return typemap[n]; |
| 8 | else |
| 9 | return typemap[n] = new sqltype(n); |
| 10 | } |
| 11 | |
| 12 | bool sqltype::consistent(struct sqltype *rvalue) { |
| 13 | return this == rvalue; |
| 14 | } |
| 15 |