util::stream::ChainConfig Struct Reference

#include <config.hh>

List of all members.

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


Detailed Description

Represents how a chain should be configured.

Definition at line 12 of file config.hh.


Constructor & Destructor Documentation

util::stream::ChainConfig::ChainConfig (  )  [inline]

Constructs an configuration with underspecified (or default) parameters.

Definition at line 15 of file config.hh.

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.

Parameters:
[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.

Definition at line 25 of file config.hh.


Member Data Documentation

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().


The documentation for this struct was generated from the following file:

Generated on Thu Jul 6 00:34:54 2017 for Moses by  doxygen 1.5.9