#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 |
Definition at line 12 of file config.hh.
util::stream::ChainConfig::ChainConfig | ( | ) | [inline] |
util::stream::ChainConfig::ChainConfig | ( | std::size_t | in_entry_size, | |
std::size_t | in_block_count, | |||
std::size_t | in_total_memory | |||
) | [inline] |
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.
Definition at line 36 of file config.hh.
Referenced by util::stream::Chain::Add(), util::stream::Chain::BlockCount(), util::stream::Chain::Chain(), main(), util::stream::Sort< Compare, Combine >::Merge(), util::stream::Chain::Start(), and util::stream::Chain::Wait().
std::size_t util::stream::ChainConfig::entry_size |
Number of bytes in each record.
Definition at line 31 of file config.hh.
Referenced by util::stream::Chain::Chain(), util::stream::Chain::EntrySize(), lm::builder::InitialProbabilities(), and util::stream::Sort< Compare, Combine >::Merge().
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.
Definition at line 43 of file config.hh.
Referenced by util::stream::Chain::Chain(), main(), and util::stream::Sort< Compare, Combine >::Merge().