Struct alcibiades::stock::StdTtable
[−]
[src]
pub struct StdTtable<T: TtableEntry> { /* fields omitted */ }
Implements the Ttable
trait.
StdTtable
provides a generic transposition table implementation
that can efficiently pack in memory a wide range of transposition
table entry types. The only condition is that T
has a size
between 6 and 16 bytes, and alignment requirements of 4 bytes or
less.
Trait Implementations
impl<T: TtableEntry> Ttable for StdTtable<T>
[src]
type Entry = T
fn new(size_mb: Option<usize>) -> StdTtable<T>
Creates a new transposition table. Read more
fn new_search(&self)
Signals that a new search is about to begin.
fn store(&self, key: u64, data: Self::Entry)
Stores data by key. Read more
fn probe(&self, key: u64) -> Option<Self::Entry>
Probes for data by key.
fn clear(&self)
Removes all entries in the table.
fn extract_pv<T: SearchNode>(&self, position: &T) -> Variation
Extracts the principal variation for a given position. Read more