]> Dogcows Code - chaz/yoink/blob - src/stlplus/persistence/persistent_ntree.hpp
archiving support for releases
[chaz/yoink] / src / stlplus / persistence / persistent_ntree.hpp
1 #ifndef STLPLUS_PERSISTENT_NTREE
2 #define STLPLUS_PERSISTENT_NTREE
3 ////////////////////////////////////////////////////////////////////////////////
4
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
9
10 // Persistence of STLplus ntree
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
15 #include "ntree.hpp"
16
17 ////////////////////////////////////////////////////////////////////////////////
18
19 namespace stlplus
20 {
21
22 // ntree
23
24 template<typename T, typename D>
25 void dump_ntree(dump_context&, const ntree<T>& data, D dump_fn)
26 throw(persistent_dump_failed);
27
28 template<typename T, typename R>
29 void restore_ntree(restore_context&, ntree<T>& data, R restore_fn)
30 throw(persistent_restore_failed);
31
32 // iterator
33
34 template<typename T, typename TRef, typename TPtr>
35 void dump_ntree_iterator(dump_context&, const ntree_iterator<T,TRef,TPtr>&)
36 throw(persistent_dump_failed);
37
38 template<typename T, typename TRef, typename TPtr>
39 void restore_ntree_iterator(restore_context&, ntree_iterator<T,TRef,TPtr>&)
40 throw(persistent_restore_failed);
41
42 // prefix iterator
43
44 template<typename T, typename TRef, typename TPtr>
45 void dump_ntree_prefix_iterator(dump_context&, const ntree_prefix_iterator<T,TRef,TPtr>&)
46 throw(persistent_dump_failed);
47
48 template<typename T, typename TRef, typename TPtr>
49 void restore_ntree_prefix_iterator(restore_context&, ntree_prefix_iterator<T,TRef,TPtr>&)
50 throw(persistent_restore_failed);
51
52 // postfix iterator
53
54 template<typename T, typename TRef, typename TPtr>
55 void dump_ntree_postfix_iterator(dump_context&, const ntree_postfix_iterator<T,TRef,TPtr>&)
56 throw(persistent_dump_failed);
57
58 template<typename T, typename TRef, typename TPtr>
59 void restore_ntree_postfix_iterator(restore_context&, ntree_postfix_iterator<T,TRef,TPtr>&)
60 throw(persistent_restore_failed);
61
62 } // end namespace stlplus
63
64 ////////////////////////////////////////////////////////////////////////////////
65 #include "persistent_ntree.tpp"
66 #endif
This page took 0.034857 seconds and 4 git commands to generate.