mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
19 lines
354 B
C++
19 lines
354 B
C++
//-*- c++ -*-
|
|
#pragma once
|
|
#include <boost/iostreams/device/mapped_file.hpp>
|
|
//
|
|
namespace Moses
|
|
{
|
|
class FastLoader
|
|
{
|
|
boost::iostreams::mapped_file_source const& file;
|
|
public:
|
|
FastLoader(boost::iostreams::mapped_file_source const& f);
|
|
void operator()() const;
|
|
};
|
|
|
|
void prime(boost::iostreams::mapped_file_source const& f);
|
|
|
|
|
|
};
|