Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/archive/detail/basic_iarchive.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
1 #ifndef BOOST_ARCHIVE_DETAIL_BASIC_IARCHIVE_HPP | 1 #ifndef BOOST_ARCHIVE_DETAIL_BASIC_IARCHIVE_HPP |
2 #define BOOST_ARCHIVE_DETAIL_BASIC_IARCHIVE_HPP | 2 #define BOOST_ARCHIVE_DETAIL_BASIC_IARCHIVE_HPP |
3 | 3 |
4 // MS compatible compilers support #pragma once | 4 // MS compatible compilers support #pragma once |
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020) | 5 #if defined(_MSC_VER) |
6 # pragma once | 6 # pragma once |
7 #endif | 7 #endif |
8 | 8 |
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 | 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
10 // basic_iarchive.hpp: | 10 // basic_iarchive.hpp: |
15 // http://www.boost.org/LICENSE_1_0.txt) | 15 // http://www.boost.org/LICENSE_1_0.txt) |
16 | 16 |
17 // See http://www.boost.org for updates, documentation, and revision history. | 17 // See http://www.boost.org for updates, documentation, and revision history. |
18 | 18 |
19 // can't use this - much as I'd like to as borland doesn't support it | 19 // can't use this - much as I'd like to as borland doesn't support it |
20 // #include <boost/scoped_ptr.hpp> | |
21 | 20 |
22 #include <boost/config.hpp> | 21 #include <boost/config.hpp> |
23 #include <boost/noncopyable.hpp> | 22 #include <boost/noncopyable.hpp> |
23 #include <boost/scoped_ptr.hpp> | |
24 | 24 |
25 #include <boost/type_traits/broken_compiler_spec.hpp> | |
26 #include <boost/serialization/tracking_enum.hpp> | 25 #include <boost/serialization/tracking_enum.hpp> |
27 #include <boost/archive/basic_archive.hpp> | 26 #include <boost/archive/basic_archive.hpp> |
28 #include <boost/archive/detail/decl.hpp> | 27 #include <boost/archive/detail/decl.hpp> |
28 #include <boost/archive/detail/helper_collection.hpp> | |
29 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header | 29 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header |
30 | 30 |
31 namespace boost { | 31 namespace boost { |
32 namespace serialization { | 32 namespace serialization { |
33 class extended_type_info; | 33 class extended_type_info; |
40 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iserializer; | 40 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iserializer; |
41 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer; | 41 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer; |
42 ////////////////////////////////////////////////////////////////////// | 42 ////////////////////////////////////////////////////////////////////// |
43 // class basic_iarchive - read serialized objects from a input stream | 43 // class basic_iarchive - read serialized objects from a input stream |
44 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iarchive : | 44 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iarchive : |
45 private boost::noncopyable | 45 private boost::noncopyable, |
46 public boost::archive::detail::helper_collection | |
46 { | 47 { |
47 friend class basic_iarchive_impl; | 48 friend class basic_iarchive_impl; |
48 // hide implementation of this class to minimize header conclusion | 49 // hide implementation of this class to minimize header conclusion |
49 // in client code. I couldn't used scoped pointer with borland | 50 boost::scoped_ptr<basic_iarchive_impl> pimpl; |
50 // boost::scoped_ptr<basic_iarchive_impl> pimpl; | |
51 basic_iarchive_impl * pimpl; | |
52 | 51 |
53 virtual void vload(version_type &t) = 0; | 52 virtual void vload(version_type &t) = 0; |
54 virtual void vload(object_id_type &t) = 0; | 53 virtual void vload(object_id_type &t) = 0; |
55 virtual void vload(class_id_type &t) = 0; | 54 virtual void vload(class_id_type &t) = 0; |
56 virtual void vload(class_id_optional_type &t) = 0; | 55 virtual void vload(class_id_optional_type &t) = 0; |
57 virtual void vload(class_name_type &t) = 0; | 56 virtual void vload(class_name_type &t) = 0; |
58 virtual void vload(tracking_type &t) = 0; | 57 virtual void vload(tracking_type &t) = 0; |
59 protected: | 58 protected: |
60 basic_iarchive(unsigned int flags); | 59 basic_iarchive(unsigned int flags); |
60 public: | |
61 // account for bogus gcc warning | 61 // account for bogus gcc warning |
62 #if defined(__GNUC__) | 62 #if defined(__GNUC__) |
63 virtual | 63 virtual |
64 #endif | 64 #endif |
65 ~basic_iarchive(); | 65 ~basic_iarchive(); |
66 public: | |
67 // note: NOT part of the public API. | 66 // note: NOT part of the public API. |
68 void next_object_pointer(void *t); | 67 void next_object_pointer(void *t); |
69 void register_basic_serializer( | 68 void register_basic_serializer( |
70 const basic_iserializer & bis | 69 const basic_iserializer & bis |
71 ); | 70 ); |
97 | 96 |
98 } // namespace detail | 97 } // namespace detail |
99 } // namespace archive | 98 } // namespace archive |
100 } // namespace boost | 99 } // namespace boost |
101 | 100 |
102 // required by smart_cast for compilers not implementing | |
103 // partial template specialization | |
104 BOOST_TT_BROKEN_COMPILER_SPEC( | |
105 boost::archive::detail::basic_iarchive | |
106 ) | |
107 | |
108 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas | 101 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas |
109 | 102 |
110 #endif //BOOST_ARCHIVE_DETAIL_BASIC_IARCHIVE_HPP | 103 #endif //BOOST_ARCHIVE_DETAIL_BASIC_IARCHIVE_HPP |