demo_pimpl_A.hpp 776 B

123456789101112131415161718192021222324
  1. #ifndef BOOST_SERIALIZATION_EXAMPLE_DEMO_PIMPL_A_HPP
  2. #define BOOST_SERIALIZATION_EXAMPLE_DEMO_PIMPL_A_HPP
  3. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  4. // demo_pimpl_A.hpp
  5. // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
  6. // Use, modification and distribution is subject to the Boost Software
  7. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. // class whose declaration is hidden by a pointer
  10. struct B;
  11. struct A {
  12. // class a contains a pointer to a "hidden" declaration
  13. B *pimpl;
  14. template<class Archive>
  15. void serialize(Archive & ar, const unsigned int file_version);
  16. A();
  17. ~A();
  18. };
  19. #endif // BOOST_SERIALIZATION_EXAMPLE_DEMO_PIMPL_A_HPP