~ubuntu-branches/ubuntu/trusty/deal.ii/trusty

« back to all changes in this revision

Viewing changes to contrib/boost/include/boost/archive/detail/basic_iserializer.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV, Adam C. Powell, IV, Denis Barbier
  • Date: 2010-07-29 13:47:01 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100729134701-akb8jb3stwge8tcm
Tags: 6.3.1-1
[ Adam C. Powell, IV ]
* Changed to source format 3.0 (quilt).
* Changed maintainer to debian-science with Adam Powell as uploader.
* Added source lintian overrides about Adam Powell's name.
* Added Vcs info on git repository.
* Bumped Standards-Version.
* Changed stamp-patch to patch target and fixed its application criterion.
* Moved make_dependencies and expand_instantiations to a versioned directory
  to avoid shlib package conflicts.

[ Denis Barbier ]
* New upstream release (closes: #562332).
  + Added libtbb support.
  + Forward-ported all patches.
* Updates for new PETSc version, including workaround for different versions
  of petsc and slepc.
* Add debian/watch.
* Update to debhelper 7.
* Added pdebuild patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef BOOST_ARCHIVE_DETAIL_BASIC_ISERIALIZER_HPP
 
2
#define BOOST_ARCHIVE_DETAIL_BASIC_ISERIALIZER_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_iserializer.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 <cstdlib> // NULL
 
20
#include <boost/config.hpp>
 
21
 
 
22
#include <boost/archive/detail/decl.hpp>
 
23
#include <boost/archive/detail/basic_serializer.hpp>
 
24
#include <boost/archive/detail/auto_link_archive.hpp>
 
25
#include <boost/archive/detail/abi_prefix.hpp> // must be the last header
 
26
 
 
27
namespace boost {
 
28
 
 
29
namespace serialization {
 
30
    class extended_type_info;
 
31
} // namespace serialization
 
32
 
 
33
// forward declarations
 
34
namespace archive {
 
35
namespace detail {
 
36
 
 
37
class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iarchive;
 
38
class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_pointer_iserializer;
 
39
 
 
40
class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) basic_iserializer : 
 
41
    public basic_serializer
 
42
{
 
43
private:
 
44
    basic_pointer_iserializer *m_bpis;
 
45
protected:
 
46
    explicit basic_iserializer(
 
47
        const boost::serialization::extended_type_info & type
 
48
    );
 
49
    // account for bogus gcc warning
 
50
    #if defined(__GNUC__)
 
51
    virtual
 
52
    #endif
 
53
    ~basic_iserializer();
 
54
public:
 
55
    bool serialized_as_pointer() const {
 
56
        return m_bpis != NULL;
 
57
    }
 
58
    void set_bpis(basic_pointer_iserializer *bpis){
 
59
        m_bpis = bpis;
 
60
    }
 
61
    const basic_pointer_iserializer * get_bpis_ptr() const {
 
62
        return m_bpis;
 
63
    }
 
64
    virtual void load_object_data(
 
65
        basic_iarchive & ar, 
 
66
        void *x,
 
67
        const unsigned int file_version
 
68
    ) const = 0;
 
69
    // returns true if class_info should be saved
 
70
    virtual bool class_info() const = 0 ;
 
71
    // returns true if objects should be tracked
 
72
    virtual bool tracking(const unsigned int) const = 0 ;
 
73
    // returns class version
 
74
    virtual unsigned int version() const = 0 ;
 
75
    // returns true if this class is polymorphic
 
76
    virtual bool is_polymorphic() const = 0;
 
77
    virtual void destroy(/*const*/ void *address) const = 0 ;
 
78
};
 
79
 
 
80
} // namespae detail
 
81
} // namespace archive
 
82
} // namespace boost
 
83
 
 
84
#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
 
85
 
 
86
#endif // BOOST_ARCHIVE_DETAIL_BASIC_ISERIALIZER_HPP