Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
src/kenlm/util/stream/config.hh
00001 #ifndef UTIL_STREAM_CONFIG_H
00002 #define UTIL_STREAM_CONFIG_H
00003 
00004 #include <cstddef>
00005 #include <string>
00006 
00007 namespace util { namespace stream {
00008 
00012 struct ChainConfig {
00013 
00015   ChainConfig() {}
00016 
00025   ChainConfig(std::size_t in_entry_size, std::size_t in_block_count, std::size_t in_total_memory)
00026     : entry_size(in_entry_size), block_count(in_block_count), total_memory(in_total_memory) {}
00027 
00031   std::size_t entry_size;
00032 
00036   std::size_t block_count;
00037 
00043   std::size_t total_memory;
00044 };
00045 
00046 
00050 struct SortConfig {
00051 
00053   std::string temp_prefix;
00054 
00056   std::size_t buffer_size;
00057 
00059   std::size_t total_memory;
00060 };
00061 
00062 }} // namespaces
00063 #endif // UTIL_STREAM_CONFIG_H