/usr/include/boost/flyweight
NameSizeModeActions
detail/-0755rm
assoc_container_factory.hpp31630644editdlrm
assoc_container_factory_fwd.hpp7850644editdlrm
factory_tag.hpp11320644editdlrm
flyweight.hpp145380644editdlrm
flyweight_fwd.hpp66970644editdlrm
hashed_factory.hpp27470644editdlrm
hashed_factory_fwd.hpp9900644editdlrm
holder_tag.hpp11210644editdlrm
intermodule_holder.hpp13260644editdlrm
intermodule_holder_fwd.hpp6080644editdlrm
key_value.hpp79510644editdlrm
key_value_fwd.hpp6310644editdlrm
locking_tag.hpp11290644editdlrm
no_locking.hpp8030644editdlrm
no_locking_fwd.hpp5290644editdlrm
no_tracking.hpp10240644editdlrm
no_tracking_fwd.hpp5320644editdlrm
refcounted.hpp49830644editdlrm
refcounted_fwd.hpp5290644editdlrm
serialize.hpp27410644editdlrm
set_factory.hpp18630644editdlrm
set_factory_fwd.hpp9400644editdlrm
simple_locking.hpp9600644editdlrm
simple_locking_fwd.hpp5410644editdlrm
static_holder.hpp11810644editdlrm
static_holder_fwd.hpp5880644editdlrm
tag.hpp10440644editdlrm
tracking_tag.hpp11400644editdlrm
Edit: /usr/include/boost/flyweight/serialize.hpp (2741B)
/* Copyright 2006-2015 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See http://www.boost.org/libs/flyweight for library home page. */ #ifndef BOOST_FLYWEIGHT_SERIALIZE_HPP #define BOOST_FLYWEIGHT_SERIALIZE_HPP #if defined(_MSC_VER)&&(_MSC_VER>=1200) #pragma once #endif #include /* keep it first to prevent nasty warns in MSVC */ #include #include #include #include #include #include #include /* Serialization routines for flyweight. */ namespace boost{ namespace serialization{ template< class Archive, typename T,typename Arg1,typename Arg2,typename Arg3 > inline void serialize( Archive& ar,::boost::flyweights::flyweight& f, const unsigned int version) { split_free(ar,f,version); } template< class Archive, typename T,typename Arg1,typename Arg2,typename Arg3 > void save( Archive& ar,const ::boost::flyweights::flyweight& f, const unsigned int /*version*/) { typedef ::boost::flyweights::flyweight flyweight; typedef ::boost::flyweights::detail::save_helper helper; typedef typename helper::size_type size_type; helper& hlp=ar.template get_helper(); size_type n=hlp.find(f); ar< void load( Archive& ar,::boost::flyweights::flyweight& f, const unsigned int version) { typedef ::boost::flyweights::flyweight flyweight; typedef typename flyweight::key_type key_type; typedef ::boost::flyweights::detail::load_helper helper; typedef typename helper::size_type size_type; helper& hlp=ar.template get_helper(); size_type n=0; ar>>make_nvp("item",n); if(n>hlp.size()){ throw_exception( archive::archive_exception(archive::archive_exception::other_exception)); } else if(n==hlp.size()){ ::boost::flyweights::detail::archive_constructed k( "key",ar,version); hlp.push_back(flyweight(k.get())); } f=hlp[n]; } } /* namespace serialization */ } /* namespace boost */ #endif