1 #ifndef STLPLUS_PERSISTENT_HASH
2 #define STLPLUS_PERSISTENT_HASH
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 for STLplus hash
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
17 ////////////////////////////////////////////////////////////////////////////////
22 template<typename K
, typename T
, typename H
, typename E
, typename DK
, typename DT
>
23 void dump_hash(dump_context
&, const hash
<K
,T
,H
,E
>& data
, DK key_dump_fn
, DT val_dump_fn
)
24 throw(persistent_dump_failed
);
26 template<typename K
, typename T
, typename H
, typename E
, typename RK
, typename RT
>
27 void restore_hash(restore_context
&, hash
<K
,T
,H
,E
>& data
, RK key_restore_fn
, RT val_restore_fn
)
28 throw(persistent_restore_failed
);
30 } // end namespace stlplus
32 ////////////////////////////////////////////////////////////////////////////////
33 #include "persistent_hash.tpp"