Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/boost/archive/detail/basic_serializer_map.hpp @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 1.8 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/archive/detail/auto_link_archive.hpp>
23
24#include <boost/archive/detail/abi_prefix.hpp> // must be the last header
25
26namespace boost { 
27namespace serialization {
28    class extended_type_info;
29}
30
31namespace archive {
32namespace detail  {
33
34class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_serializer;
35
36struct BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) type_info_pointer_compare
37{
38    bool operator()(
39        const basic_serializer * lhs, const basic_serializer * rhs
40    ) const ;
41};
42
43class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_serializer_map
44{
45    typedef std::set<const basic_serializer *, type_info_pointer_compare> map_type;
46    map_type m_map;
47    bool & m_deleted;
48public:
49    bool insert(const basic_serializer * bs);
50    const basic_serializer * tfind(
51        const boost::serialization::extended_type_info & type_
52    ) const;
53    void erase(basic_serializer * bs);
54    basic_serializer_map(bool & deleted);
55    ~basic_serializer_map();
56};
57
58} // namespace detail
59} // namespace archive
60} // namespace boost
61
62#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
63
64#endif // BOOST_TYPEINFO_EXTENDED_MAP_HPP
Note: See TracBrowser for help on using the repository browser.