]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/persistence/persistent_ntree.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / persistence / persistent_ntree.hpp
diff --git a/src/stlplus/persistence/persistent_ntree.hpp b/src/stlplus/persistence/persistent_ntree.hpp
new file mode 100644 (file)
index 0000000..635da50
--- /dev/null
@@ -0,0 +1,66 @@
+#ifndef STLPLUS_PERSISTENT_NTREE\r
+#define STLPLUS_PERSISTENT_NTREE\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 STLplus ntree\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "persistence_fixes.hpp"\r
+#include "persistent_contexts.hpp"\r
+#include "ntree.hpp"\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  // ntree\r
+\r
+  template<typename T, typename D>\r
+  void dump_ntree(dump_context&, const ntree<T>& data, D dump_fn)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename T, typename R>\r
+  void restore_ntree(restore_context&, ntree<T>& data, R restore_fn)\r
+    throw(persistent_restore_failed);\r
+\r
+  // iterator\r
+\r
+  template<typename T, typename TRef, typename TPtr>\r
+  void dump_ntree_iterator(dump_context&, const ntree_iterator<T,TRef,TPtr>&)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename T, typename TRef, typename TPtr>\r
+  void restore_ntree_iterator(restore_context&, ntree_iterator<T,TRef,TPtr>&)\r
+    throw(persistent_restore_failed);\r
+\r
+  // prefix iterator\r
+\r
+  template<typename T, typename TRef, typename TPtr>\r
+  void dump_ntree_prefix_iterator(dump_context&, const ntree_prefix_iterator<T,TRef,TPtr>&)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename T, typename TRef, typename TPtr>\r
+  void restore_ntree_prefix_iterator(restore_context&, ntree_prefix_iterator<T,TRef,TPtr>&)\r
+    throw(persistent_restore_failed);\r
+\r
+  // postfix iterator\r
+\r
+  template<typename T, typename TRef, typename TPtr>\r
+  void dump_ntree_postfix_iterator(dump_context&, const ntree_postfix_iterator<T,TRef,TPtr>&)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename T, typename TRef, typename TPtr>\r
+  void restore_ntree_postfix_iterator(restore_context&, ntree_postfix_iterator<T,TRef,TPtr>&)\r
+    throw(persistent_restore_failed);\r
+\r
+} // end namespace stlplus\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+#include "persistent_ntree.tpp"\r
+#endif\r
This page took 0.022577 seconds and 4 git commands to generate.