summaryrefslogtreecommitdiff
path: root/components/rtgui/utils/perfect_hash/example-C++/states-code.hh
diff options
context:
space:
mode:
Diffstat (limited to 'components/rtgui/utils/perfect_hash/example-C++/states-code.hh')
-rw-r--r--components/rtgui/utils/perfect_hash/example-C++/states-code.hh19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/rtgui/utils/perfect_hash/example-C++/states-code.hh b/components/rtgui/utils/perfect_hash/example-C++/states-code.hh
new file mode 100644
index 0000000000..964d8bf8a5
--- /dev/null
+++ b/components/rtgui/utils/perfect_hash/example-C++/states-code.hh
@@ -0,0 +1,19 @@
+
+
+#include <string>
+using namespace std;
+
+
+class State
+{
+public:
+ State (const string abbr);
+
+ string name () const { return nam; };
+ int population () const { return pop; };
+
+private:
+ string nam;
+ int pop;
+};
+