1 #ifndef STLPLUS_PERSISTENT_NTREE
2 #define STLPLUS_PERSISTENT_NTREE
3 ////////////////////////////////////////////////////////////////////////////////
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
10 // Persistence of STLplus ntree
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
17 ////////////////////////////////////////////////////////////////////////////////
24 template<typename T
, typename D
>
25 void dump_ntree(dump_context
&, const ntree
<T
>& data
, D dump_fn
)
26 throw(persistent_dump_failed
);
28 template<typename T
, typename R
>
29 void restore_ntree(restore_context
&, ntree
<T
>& data
, R restore_fn
)
30 throw(persistent_restore_failed
);
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
);
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
);
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
);
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
);
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
);
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
);
62 } // end namespace stlplus
64 ////////////////////////////////////////////////////////////////////////////////
65 #include "persistent_ntree.tpp"