Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::AdversarialTraceCollector< Move, Score > Class Template Reference

Collector that stores trace events in an Aleph list. More...

#include <Negamax.H>

Collaboration diagram for Aleph::AdversarialTraceCollector< Move, Score >:
[legend]

Public Types

using Event = AdversarialTraceEvent< Move, Score >
 
using Container_Type = DynList< Event >
 

Public Member Functions

void operator() (const Event &event)
 Record one trace event.
 
void clear () noexcept
 Discard all recorded events.
 
size_t size () const noexcept
 Number of recorded events.
 
bool is_empty () const noexcept
 True when no events have been recorded.
 
const Container_Typeevents () const noexcept
 Read-only access to the recorded event list.
 

Private Attributes

Container_Type events_
 

Detailed Description

template<SearchMove Move, AdversarialScore Score>
class Aleph::AdversarialTraceCollector< Move, Score >

Collector that stores trace events in an Aleph list.

Definition at line 272 of file Negamax.H.

Member Typedef Documentation

◆ Container_Type

template<SearchMove Move, AdversarialScore Score>
using Aleph::AdversarialTraceCollector< Move, Score >::Container_Type = DynList<Event>

Definition at line 276 of file Negamax.H.

◆ Event

template<SearchMove Move, AdversarialScore Score>
using Aleph::AdversarialTraceCollector< Move, Score >::Event = AdversarialTraceEvent<Move, Score>

Definition at line 275 of file Negamax.H.

Member Function Documentation

◆ clear()

template<SearchMove Move, AdversarialScore Score>
void Aleph::AdversarialTraceCollector< Move, Score >::clear ( )
inlinenoexcept

Discard all recorded events.

Definition at line 285 of file Negamax.H.

References Aleph::DynList< T >::clear(), and Aleph::AdversarialTraceCollector< Move, Score >::events_.

◆ events()

template<SearchMove Move, AdversarialScore Score>
const Container_Type & Aleph::AdversarialTraceCollector< Move, Score >::events ( ) const
inlinenoexcept

Read-only access to the recorded event list.

Definition at line 303 of file Negamax.H.

References Aleph::AdversarialTraceCollector< Move, Score >::events_.

◆ is_empty()

template<SearchMove Move, AdversarialScore Score>
bool Aleph::AdversarialTraceCollector< Move, Score >::is_empty ( ) const
inlinenoexcept

True when no events have been recorded.

Definition at line 297 of file Negamax.H.

References Aleph::AdversarialTraceCollector< Move, Score >::events_, and Aleph::HTList::is_empty().

◆ operator()()

template<SearchMove Move, AdversarialScore Score>
void Aleph::AdversarialTraceCollector< Move, Score >::operator() ( const Event event)
inline

◆ size()

template<SearchMove Move, AdversarialScore Score>
size_t Aleph::AdversarialTraceCollector< Move, Score >::size ( ) const
inlinenoexcept

Number of recorded events.

Definition at line 291 of file Negamax.H.

References Aleph::AdversarialTraceCollector< Move, Score >::events_, and Aleph::HTList::size().

Member Data Documentation

◆ events_


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