Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/archive/detail/basic_serializer_map.hpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.0 KB
Line 
1#ifndef  BOOST_TYPEINFO_EXTENDED_MAP_HPP
2#define BOOST_TYPEINFO_EXTENDED_MAP_HPP
3
4// MS compatible compilers support #pragma once
5#if defined(_MSC_VER) && (_MSC_VER >= 1020)
6# pragma once
7#endif
8
9/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10// basic_serializer_map.hpp: extenstion of type_info required for serialization.
11
12// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
13// Use, modification and distribution is subject to the Boost Software
14// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15// http://www.boost.org/LICENSE_1_0.txt)
16
17//  See http://www.boost.org for updates, documentation, and revision history.
18
19#include <set>
20
21#include <boost/config.hpp>
22#include <boost/utility.hpp>
23#include <boost/archive/detail/auto_link_archive.hpp>
24
25#include <boost/archive/detail/abi_prefix.hpp> // must be the last header
26
27namespace boost { 
28namespace serialization {
29    class extended_type_info;
30}
31
32namespace archive {
33namespace detail  {
34
35class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_serializer;
36
37struct BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) type_info_pointer_compare
38{
39    bool operator()(
40        const basic_serializer * lhs, const basic_serializer * rhs
41    ) const ;
42};
43
44class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_serializer_map : public
45    boost::noncopyable
46{
47    typedef std::set<const basic_serializer *, type_info_pointer_compare> map_type;
48    map_type m_map;
49    bool & m_deleted;
50public:
51    bool insert(const basic_serializer * bs);
52    const basic_serializer * tfind(
53        const boost::serialization::extended_type_info & type_
54    ) const;
55    void erase(basic_serializer * bs);
56    basic_serializer_map(bool & deleted);
57    ~basic_serializer_map();
58private:
59    // cw 8.3 requires this
60    basic_serializer_map& operator=(basic_serializer_map const&);
61};
62
63} // namespace detail
64} // namespace archive
65} // namespace boost
66
67#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
68
69#endif // BOOST_TYPEINFO_EXTENDED_MAP_HPP
Note: See TracBrowser for help on using the repository browser.