Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
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.


Constructor & Destructor Documentation

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.

Parameters:
[in]in_entry_sizeNumber of bytes in each record.
[in]in_block_countNumber of blocks in the chain.
[in]in_total_memoryTotal number of bytes available to the chain. This value will be divided amongst the blocks in the chain.

Member Data Documentation

Number of blocks in the chain.

Number of bytes in each record.

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.