persistence/persistent_list.hpp
1: #ifndef STLPLUS_PERSISTENT_LIST
2: #define STLPLUS_PERSISTENT_LIST
3: ////////////////////////////////////////////////////////////////////////////////
4:
5: // Author: Andy Rushton
6: // Copyright: (c) Andy Rushton, 2007
7: // License: BSD License, see ../docs/license.html
8:
9: // Persistence of STL list
10:
11: ////////////////////////////////////////////////////////////////////////////////
12: #include "persistence_fixes.hpp"
13: #include "persistent_contexts.hpp"
14: #include <list>
15:
16: ////////////////////////////////////////////////////////////////////////////////
17:
18: namespace stlplus
19: {
20:
21: template<typename T, typename D>
22: void dump_list(dump_context&, const std::list<T>& data, D dump_fn) throw(persistent_dump_failed);
23:
24: template<typename T, typename R>
25: void restore_list(restore_context&, std::list<T>& data, R restore_fn) throw(persistent_restore_failed);
26:
27: } // end namespace stlplus
28:
29: ////////////////////////////////////////////////////////////////////////////////
30: #include "persistent_list.tpp"
31: #endif