persistence/persistent_ntree.hpp

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