X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_vector.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_vector.hpp;h=fd108aa8829f595a37f4ec47e1016d90fc1fd972;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hp=0000000000000000000000000000000000000000;hpb=85783316365181491a3e3c0c63659972477cebba;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_vector.hpp b/src/stlplus/persistence/persistent_vector.hpp new file mode 100644 index 0000000..fd108aa --- /dev/null +++ b/src/stlplus/persistence/persistent_vector.hpp @@ -0,0 +1,44 @@ +#ifndef STLPLUS_PERSISTENT_VECTOR +#define STLPLUS_PERSISTENT_VECTOR +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// Persistence of STL vector + +//////////////////////////////////////////////////////////////////////////////// +#include "persistence_fixes.hpp" +#include "persistent_contexts.hpp" +#include + +//////////////////////////////////////////////////////////////////////////////// + +namespace stlplus +{ + + // vector + + template + void dump_vector(dump_context&, const std::vector& data, D dump_fn) + throw(persistent_dump_failed); + + template + void restore_vector(restore_context&, std::vector& data, R restore_fn) + throw(persistent_restore_failed); + + // specialism for vector + + void dump_vector_bool(dump_context&, const std::vector& data) + throw(persistent_dump_failed); + + void restore_vector_bool(restore_context&, std::vector& data) + throw(persistent_restore_failed); + +} // end namespace stlplus + + //////////////////////////////////////////////////////////////////////////////// +#include "persistent_vector.tpp" +#endif