X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_ntree.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_ntree.hpp;h=635da50ac290a56041b32f79e4890b7632742910;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hp=0000000000000000000000000000000000000000;hpb=85783316365181491a3e3c0c63659972477cebba;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_ntree.hpp b/src/stlplus/persistence/persistent_ntree.hpp new file mode 100644 index 0000000..635da50 --- /dev/null +++ b/src/stlplus/persistence/persistent_ntree.hpp @@ -0,0 +1,66 @@ +#ifndef STLPLUS_PERSISTENT_NTREE +#define STLPLUS_PERSISTENT_NTREE +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// Persistence of STLplus ntree + +//////////////////////////////////////////////////////////////////////////////// +#include "persistence_fixes.hpp" +#include "persistent_contexts.hpp" +#include "ntree.hpp" + +//////////////////////////////////////////////////////////////////////////////// + +namespace stlplus +{ + + // ntree + + template + void dump_ntree(dump_context&, const ntree& data, D dump_fn) + throw(persistent_dump_failed); + + template + void restore_ntree(restore_context&, ntree& data, R restore_fn) + throw(persistent_restore_failed); + + // iterator + + template + void dump_ntree_iterator(dump_context&, const ntree_iterator&) + throw(persistent_dump_failed); + + template + void restore_ntree_iterator(restore_context&, ntree_iterator&) + throw(persistent_restore_failed); + + // prefix iterator + + template + void dump_ntree_prefix_iterator(dump_context&, const ntree_prefix_iterator&) + throw(persistent_dump_failed); + + template + void restore_ntree_prefix_iterator(restore_context&, ntree_prefix_iterator&) + throw(persistent_restore_failed); + + // postfix iterator + + template + void dump_ntree_postfix_iterator(dump_context&, const ntree_postfix_iterator&) + throw(persistent_dump_failed); + + template + void restore_ntree_postfix_iterator(restore_context&, ntree_postfix_iterator&) + throw(persistent_restore_failed); + +} // end namespace stlplus + + //////////////////////////////////////////////////////////////////////////////// +#include "persistent_ntree.tpp" +#endif