persistence/persistent_set.hpp

    1: #ifndef STLPLUS_PERSISTENT_SET
    2: #define STLPLUS_PERSISTENT_SET
    3: ////////////////////////////////////////////////////////////////////////////////
    4: 
    5: //   Author:    Andy Rushton
    6: //   Copyright: (c) Andy Rushton, 2007
    7: //   License:   BSD License, see ../docs/license.html
    8: 
    9: //   Set of persistence routines for the STL classes
   10: 
   11: ////////////////////////////////////////////////////////////////////////////////
   12: #include "persistence_fixes.hpp"
   13: #include "persistent_contexts.hpp"
   14: #include <set>
   15: 
   16: ////////////////////////////////////////////////////////////////////////////////
   17: 
   18: namespace stlplus
   19: {
   20: 
   21:   template<typename K, typename P, typename D>
   22:   void dump_set(dump_context&, const std::set<K,P>& data, D dump_fn)
   23:     throw(persistent_dump_failed);
   24: 
   25:   template<typename K, typename P, typename R>
   26:   void restore_set(restore_context&, std::set<K,P>& data, R restore_fn)
   27:     throw(persistent_restore_failed);
   28: 
   29: } // end namespace stlplus
   30: 
   31:   ////////////////////////////////////////////////////////////////////////////////
   32: #include "persistent_set.tpp"
   33: #endif