Joshua
open source statistical hierarchical phrase-based machine translation system
|
#include <config.hh>
Public Member Functions | |
ChainConfig () | |
ChainConfig (std::size_t in_entry_size, std::size_t in_block_count, std::size_t in_total_memory) | |
Public Attributes | |
std::size_t | entry_size |
std::size_t | block_count |
std::size_t | total_memory |
Represents how a chain should be configured.
Constructs an configuration with underspecified (or default) parameters.
util::stream::ChainConfig::ChainConfig | ( | std::size_t | in_entry_size, |
std::size_t | in_block_count, | ||
std::size_t | in_total_memory | ||
) |
Constructs a chain configuration object.
[in] | in_entry_size | Number of bytes in each record. |
[in] | in_block_count | Number of blocks in the chain. |
[in] | in_total_memory | Total number of bytes available to the chain. This value will be divided amongst the blocks in the chain. |
std::size_t util::stream::ChainConfig::block_count |
Number of blocks in the chain.
std::size_t util::stream::ChainConfig::entry_size |
Number of bytes in each record.
std::size_t util::stream::ChainConfig::total_memory |
Total number of bytes available to the chain. This value will be divided amongst the blocks in the chain. Chain's constructor will make this a multiple of entry_size.