]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/persistence/persistent_hash.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / persistence / persistent_hash.hpp
diff --git a/src/stlplus/persistence/persistent_hash.hpp b/src/stlplus/persistence/persistent_hash.hpp
new file mode 100644 (file)
index 0000000..623f285
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef STLPLUS_PERSISTENT_HASH\r
+#define STLPLUS_PERSISTENT_HASH\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+//   Author:    Andy Rushton\r
+//   Copyright: (c) Southampton University 1999-2004\r
+//              (c) Andy Rushton           2004-2009\r
+//   License:   BSD License, see ../docs/license.html\r
+\r
+//   Persistence for STLplus hash\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "persistence_fixes.hpp"\r
+#include "persistent_contexts.hpp"\r
+#include "hash.hpp"\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  template<typename K, typename T, typename H, typename E, typename DK, typename DT>\r
+  void dump_hash(dump_context&, const hash<K,T,H,E>& data, DK key_dump_fn, DT val_dump_fn)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename K, typename T, typename H, typename E, typename RK, typename RT>\r
+  void restore_hash(restore_context&, hash<K,T,H,E>& data, RK key_restore_fn, RT val_restore_fn)\r
+    throw(persistent_restore_failed);\r
+\r
+} // end namespace stlplus\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+#include "persistent_hash.tpp"\r
+#endif\r
This page took 0.026358 seconds and 4 git commands to generate.