os/ossrv/ossrv_pub/boost_apis/boost/serialization/hash_set.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/serialization/hash_set.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,178 @@
     1.4 +#ifndef  BOOST_SERIALIZATION_HASH_SET_HPP
     1.5 +#define BOOST_SERIALIZATION_HASH_SET_HPP
     1.6 +
     1.7 +// MS compatible compilers support #pragma once
     1.8 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
     1.9 +# pragma once
    1.10 +#endif
    1.11 +
    1.12 +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
    1.13 +// hash_set.hpp: serialization for stl hash_set templates
    1.14 +
    1.15 +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
    1.16 +// Use, modification and distribution is subject to the Boost Software
    1.17 +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
    1.18 +// http://www.boost.org/LICENSE_1_0.txt)
    1.19 +
    1.20 +//  See http://www.boost.org for updates, documentation, and revision history.
    1.21 +
    1.22 +#include <boost/config.hpp>
    1.23 +#ifdef BOOST_HAS_HASH
    1.24 +#include BOOST_HASH_SET_HEADER
    1.25 +
    1.26 +#include <boost/serialization/hash_collections_save_imp.hpp>
    1.27 +#include <boost/serialization/hash_collections_load_imp.hpp>
    1.28 +#include <boost/serialization/split_free.hpp>
    1.29 +
    1.30 +namespace boost { 
    1.31 +namespace serialization {
    1.32 +
    1.33 +template<
    1.34 +    class Archive, 
    1.35 +    class Key, 
    1.36 +    class HashFcn, 
    1.37 +    class EqualKey,
    1.38 +    class Allocator
    1.39 +>
    1.40 +inline void save(
    1.41 +    Archive & ar,
    1.42 +    const BOOST_STD_EXTENSION_NAMESPACE::hash_set<
    1.43 +        Key, HashFcn, EqualKey, Allocator
    1.44 +    > &t,
    1.45 +    const unsigned int file_version
    1.46 +){
    1.47 +    boost::serialization::stl::save_hash_collection<
    1.48 +        Archive, 
    1.49 +        BOOST_STD_EXTENSION_NAMESPACE::hash_set<
    1.50 +            Key, HashFcn, EqualKey, Allocator
    1.51 +        > 
    1.52 +    >(ar, t);
    1.53 +}
    1.54 +
    1.55 +template<
    1.56 +    class Archive, 
    1.57 +    class Key, 
    1.58 +    class HashFcn, 
    1.59 +    class EqualKey,
    1.60 +    class Allocator
    1.61 +>
    1.62 +inline void load(
    1.63 +    Archive & ar,
    1.64 +    BOOST_STD_EXTENSION_NAMESPACE::hash_set<
    1.65 +        Key, HashFcn, EqualKey, Allocator
    1.66 +    > &t,
    1.67 +    const unsigned int file_version
    1.68 +){
    1.69 +    boost::serialization::stl::load_hash_collection<
    1.70 +        Archive,
    1.71 +        BOOST_STD_EXTENSION_NAMESPACE::hash_set<
    1.72 +            Key, HashFcn, EqualKey, Allocator
    1.73 +        >,
    1.74 +        boost::serialization::stl::archive_input_unique<
    1.75 +            Archive, 
    1.76 +            BOOST_STD_EXTENSION_NAMESPACE::hash_set<
    1.77 +                Key, HashFcn, EqualKey, Allocator
    1.78 +            >
    1.79 +        >
    1.80 +    >(ar, t);
    1.81 +}
    1.82 +
    1.83 +// split non-intrusive serialization function member into separate
    1.84 +// non intrusive save/load member functions
    1.85 +template<
    1.86 +    class Archive, 
    1.87 +    class Key, 
    1.88 +    class HashFcn, 
    1.89 +    class EqualKey,
    1.90 +    class Allocator
    1.91 +>
    1.92 +inline void serialize(
    1.93 +    Archive & ar,
    1.94 +    BOOST_STD_EXTENSION_NAMESPACE::hash_set<
    1.95 +        Key, HashFcn, EqualKey, Allocator
    1.96 +    > &t,
    1.97 +    const unsigned int file_version
    1.98 +){
    1.99 +    boost::serialization::split_free(ar, t, file_version);
   1.100 +}
   1.101 +
   1.102 +// hash_multiset
   1.103 +template<
   1.104 +    class Archive, 
   1.105 +    class Key, 
   1.106 +    class HashFcn, 
   1.107 +    class EqualKey,
   1.108 +    class Allocator
   1.109 +>
   1.110 +inline void save(
   1.111 +    Archive & ar,
   1.112 +    const BOOST_STD_EXTENSION_NAMESPACE::hash_multiset<
   1.113 +        Key, HashFcn, EqualKey, Allocator
   1.114 +    > &t,
   1.115 +    const unsigned int file_version
   1.116 +){
   1.117 +    boost::serialization::stl::save_hash_collection<
   1.118 +        Archive, 
   1.119 +        BOOST_STD_EXTENSION_NAMESPACE::hash_multiset<
   1.120 +            Key, HashFcn, EqualKey, Allocator
   1.121 +        > 
   1.122 +    >(ar, t);
   1.123 +}
   1.124 +
   1.125 +template<
   1.126 +    class Archive, 
   1.127 +    class Key, 
   1.128 +    class HashFcn, 
   1.129 +    class EqualKey,
   1.130 +    class Allocator
   1.131 +>
   1.132 +inline void load(
   1.133 +    Archive & ar,
   1.134 +    BOOST_STD_EXTENSION_NAMESPACE::hash_multiset<
   1.135 +        Key, HashFcn, EqualKey, Allocator
   1.136 +    > &t,
   1.137 +    const unsigned int file_version
   1.138 +){
   1.139 +    boost::serialization::stl::load_hash_collection<
   1.140 +        Archive,
   1.141 +        BOOST_STD_EXTENSION_NAMESPACE::hash_multiset<
   1.142 +            Key, HashFcn, EqualKey, Allocator
   1.143 +        >,
   1.144 +        boost::serialization::stl::archive_input_multi<
   1.145 +            Archive,
   1.146 +            BOOST_STD_EXTENSION_NAMESPACE::hash_multiset<
   1.147 +                Key, HashFcn, EqualKey, Allocator
   1.148 +            > 
   1.149 +        >
   1.150 +    >(ar, t);
   1.151 +}
   1.152 +
   1.153 +// split non-intrusive serialization function member into separate
   1.154 +// non intrusive save/load member functions
   1.155 +template<
   1.156 +    class Archive, 
   1.157 +    class Key, 
   1.158 +    class HashFcn, 
   1.159 +    class EqualKey,
   1.160 +    class Allocator
   1.161 +>
   1.162 +inline void serialize(
   1.163 +    Archive & ar,
   1.164 +    BOOST_STD_EXTENSION_NAMESPACE::hash_multiset<
   1.165 +        Key, HashFcn, EqualKey, Allocator
   1.166 +    > & t,
   1.167 +    const unsigned int file_version
   1.168 +){
   1.169 +    boost::serialization::split_free(ar, t, file_version);
   1.170 +}
   1.171 +
   1.172 +} // namespace serialization
   1.173 +} // namespace boost
   1.174 +
   1.175 +#include <boost/serialization/collection_traits.hpp>
   1.176 +
   1.177 +BOOST_SERIALIZATION_COLLECTION_TRAITS(BOOST_STD_EXTENSION_NAMESPACE::hash_set)
   1.178 +BOOST_SERIALIZATION_COLLECTION_TRAITS(BOOST_STD_EXTENSION_NAMESPACE::hash_multiset)
   1.179 +
   1.180 +#endif // BOOST_HAS_HASH
   1.181 +#endif // BOOST_SERIALIZATION_HASH_SET_HPP