Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:27

0001 #ifndef BOOST_ARCHIVE_BASIC_POINTER_ISERIALIZER_HPP
0002 #define BOOST_ARCHIVE_BASIC_POINTER_ISERIALIZER_HPP
0003 
0004 // MS compatible compilers support #pragma once
0005 #if defined(_MSC_VER)
0006 # pragma once
0007 #endif
0008 
0009 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
0010 // basic_pointer_oserializer.hpp: extension of type_info required for
0011 // serialization.
0012 
0013 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
0014 // Use, modification and distribution is subject to the Boost Software
0015 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0016 // http://www.boost.org/LICENSE_1_0.txt)
0017 
0018 //  See http://www.boost.org for updates, documentation, and revision history.
0019 #include <boost/config.hpp>
0020 #include <boost/noncopyable.hpp>
0021 #include <boost/archive/detail/auto_link_archive.hpp>
0022 #include <boost/archive/detail/basic_serializer.hpp>
0023 
0024 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
0025 
0026 #ifdef BOOST_MSVC
0027 #  pragma warning(push)
0028 #  pragma warning(disable : 4511 4512)
0029 #endif
0030 
0031 namespace boost {
0032 namespace serialization {
0033     class extended_type_info;
0034 } // namespace serialization
0035 
0036 // forward declarations
0037 namespace archive {
0038 namespace detail {
0039 
0040 class basic_iarchive;
0041 class basic_iserializer;
0042 
0043 class BOOST_SYMBOL_VISIBLE basic_pointer_iserializer
0044     : public basic_serializer {
0045 protected:
0046     explicit BOOST_ARCHIVE_DECL basic_pointer_iserializer(
0047         const boost::serialization::extended_type_info & type_
0048     );
0049     virtual BOOST_ARCHIVE_DECL ~basic_pointer_iserializer();
0050 public:
0051     virtual void * heap_allocation() const = 0;
0052     virtual const basic_iserializer & get_basic_serializer() const = 0;
0053     virtual void load_object_ptr(
0054         basic_iarchive & ar,
0055         void * x,
0056         const unsigned int file_version
0057     ) const = 0;
0058 };
0059 
0060 } // namespace detail
0061 } // namespace archive
0062 } // namespace boost
0063 
0064 #ifdef BOOST_MSVC
0065 #pragma warning(pop)
0066 #endif
0067 
0068 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
0069 
0070 #endif // BOOST_ARCHIVE_BASIC_POINTER_ISERIALIZER_HPP