]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/persistence/persistent_vector.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / persistence / persistent_vector.hpp
diff --git a/src/stlplus/persistence/persistent_vector.hpp b/src/stlplus/persistence/persistent_vector.hpp
new file mode 100644 (file)
index 0000000..fd108aa
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef STLPLUS_PERSISTENT_VECTOR\r
+#define STLPLUS_PERSISTENT_VECTOR\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 of STL vector\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "persistence_fixes.hpp"\r
+#include "persistent_contexts.hpp"\r
+#include <vector>\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  // vector\r
+\r
+  template<typename T, typename D>\r
+  void dump_vector(dump_context&, const std::vector<T>& data, D dump_fn)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename T, typename R>\r
+  void restore_vector(restore_context&, std::vector<T>& data, R restore_fn)\r
+    throw(persistent_restore_failed);\r
+\r
+  // specialism for vector<bool>\r
+\r
+  void dump_vector_bool(dump_context&, const std::vector<bool>& data)\r
+    throw(persistent_dump_failed);\r
+\r
+  void restore_vector_bool(restore_context&, std::vector<bool>& data)\r
+    throw(persistent_restore_failed);\r
+\r
+} // end namespace stlplus\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+#include "persistent_vector.tpp"\r
+#endif\r
This page took 0.023931 seconds and 4 git commands to generate.