Program Listing for File serialize_population.hpp

Return to documentation for file (fwdpp/io/serialize_population.hpp)

#ifndef FWDPP_IO_SERIALIZE_POPULATION_HPP__
#define FWDPP_IO_SERIALIZE_POPULATION_HPP__

#include "detail/serialize_population.hpp"

namespace fwdpp
{
    namespace io
    {
        template <typename streamtype, typename poptype>
        inline void
        serialize_population(streamtype &buffer, const poptype &pop)
        {
            detail::serialize_population_details(
                buffer, pop, typename poptype::popmodel_t());
        }

        template <typename streamtype, typename poptype>
        inline void
        deserialize_population(streamtype &buffer, poptype &pop)
        {
            detail::deserialize_population_details(
                pop, buffer, typename poptype::popmodel_t());
        }
    }
}

#endif