X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_hash.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_hash.hpp;h=623f285e3d8c1aa460e029b35e049170d197b458;hp=0000000000000000000000000000000000000000;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=85783316365181491a3e3c0c63659972477cebba diff --git a/src/stlplus/persistence/persistent_hash.hpp b/src/stlplus/persistence/persistent_hash.hpp new file mode 100644 index 0000000..623f285 --- /dev/null +++ b/src/stlplus/persistence/persistent_hash.hpp @@ -0,0 +1,34 @@ +#ifndef STLPLUS_PERSISTENT_HASH +#define STLPLUS_PERSISTENT_HASH +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// Persistence for STLplus hash + +//////////////////////////////////////////////////////////////////////////////// +#include "persistence_fixes.hpp" +#include "persistent_contexts.hpp" +#include "hash.hpp" + +//////////////////////////////////////////////////////////////////////////////// + +namespace stlplus +{ + + template + void dump_hash(dump_context&, const hash& data, DK key_dump_fn, DT val_dump_fn) + throw(persistent_dump_failed); + + template + void restore_hash(restore_context&, hash& data, RK key_restore_fn, RT val_restore_fn) + throw(persistent_restore_failed); + +} // end namespace stlplus + + //////////////////////////////////////////////////////////////////////////////// +#include "persistent_hash.tpp" +#endif