]> Dogcows Code - chaz/yoink/blob - src/stlplus/persistence/persistent_vector.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / persistence / persistent_vector.hpp
1 #ifndef STLPLUS_PERSISTENT_VECTOR
2 #define STLPLUS_PERSISTENT_VECTOR
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 STL vector
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
15 #include <vector>
16
17 ////////////////////////////////////////////////////////////////////////////////
18
19 namespace stlplus
20 {
21
22 // vector
23
24 template<typename T, typename D>
25 void dump_vector(dump_context&, const std::vector<T>& data, D dump_fn)
26 throw(persistent_dump_failed);
27
28 template<typename T, typename R>
29 void restore_vector(restore_context&, std::vector<T>& data, R restore_fn)
30 throw(persistent_restore_failed);
31
32 // specialism for vector<bool>
33
34 void dump_vector_bool(dump_context&, const std::vector<bool>& data)
35 throw(persistent_dump_failed);
36
37 void restore_vector_bool(restore_context&, std::vector<bool>& data)
38 throw(persistent_restore_failed);
39
40 } // end namespace stlplus
41
42 ////////////////////////////////////////////////////////////////////////////////
43 #include "persistent_vector.tpp"
44 #endif
This page took 0.03201 seconds and 4 git commands to generate.