X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_digraph.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_digraph.hpp;h=fcc57a0153b4e3aa83ad259ffa08de65b6485ad5;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hp=0000000000000000000000000000000000000000;hpb=85783316365181491a3e3c0c63659972477cebba;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_digraph.hpp b/src/stlplus/persistence/persistent_digraph.hpp new file mode 100644 index 0000000..fcc57a0 --- /dev/null +++ b/src/stlplus/persistence/persistent_digraph.hpp @@ -0,0 +1,56 @@ +#ifndef STLPLUS_PERSISTENT_DIGRAPH +#define STLPLUS_PERSISTENT_DIGRAPH +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// Persistence of STLplus digraph + +//////////////////////////////////////////////////////////////////////////////// +#include "persistence_fixes.hpp" +#include "persistent_contexts.hpp" +#include "digraph.hpp" + +//////////////////////////////////////////////////////////////////////////////// + +namespace stlplus +{ + + // digraph + + template + void dump_digraph(dump_context&, const digraph& data, DN dump_node, DA dump_arc) + throw(persistent_dump_failed); + + template + void restore_digraph(restore_context&, digraph& data, RN restore_node, RA restore_arc) + throw(persistent_restore_failed); + + // node iterator + + template + void dump_digraph_iterator(dump_context& str, const digraph_iterator& data) + throw(persistent_dump_failed); + + template + void restore_digraph_iterator(restore_context& str, digraph_iterator& data) + throw(persistent_restore_failed); + + // arc iterator + + template + void dump_digraph_arc_iterator(dump_context& str, const digraph_arc_iterator& data) + throw(persistent_dump_failed); + + template + void restore_digraph_arc_iterator(restore_context& str, digraph_arc_iterator& data) + throw(persistent_restore_failed); + +} // end namespace stlplus + + //////////////////////////////////////////////////////////////////////////////// +#include "persistent_digraph.tpp" +#endif