Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
OpTable Class Reference

#include <optable.h>

Public Member Functions

 OpTable (const char *type, Game *g, PBook *ecoBook)
 
 OpTable (const char *type, Game *g)
 
 ~OpTable ()
 
void Init (const char *type, Game *g, PBook *ecoBook)
 
void Clear ()
 
void ClearNotes ()
 
void SetFormat (const char *str)
 
void SetDecimalChar (char c)
 
uint GetTotalCount ()
 
uint GetTheoryCount ()
 
void SetExcludeMove (const char *s)
 
const char * GetEco () const
 
void SetNumRows (uint nrows)
 
void GuessNumRows (void)
 
void SetMaxTableLines (uint nlines)
 
uint GetMaxTableLines (void)
 
void SetMaxExtraMoves (uint nmoves)
 
uint GetMaxExtraMoves (void)
 
uint GetNumLines (void)
 
void SetMaxThemeMoveNumber (uint x)
 
bool Add (OpLine *line)
 
uint PercentScore (void)
 
uint TheoryPercent (void)
 
uint TheoryScore (void)
 
uint PercentFreq (resultT result)
 
uint AvgLength (resultT result)
 
uint AvgElo (colorT color, uint *count, uint *oppScore, uint *oppPerf)
 
void BestGames (DString *dstr, uint count, const char *rtype)
 
void TopPlayers (DString *dstr, colorT c, uint count)
 
void TopEcoCodes (DString *dstr, uint count)
 
void PrintStemLine (DString *dstr, uint format, bool exclude)
 
void PrintStemLine (DString *dstr)
 
void MakeRows (void)
 
void DumpLines (FILE *fp)
 
void PrintTable (DString *dstr, const char *title, const char *comment)
 
void PrintLaTeX (DString *dstr, const char *title, const char *comment)
 
void PrintHTML (DString *str, const char *title, const char *comment)
 
void PrintText (DString *str, const char *title, const char *comment, bool htext)
 
uint AddMoveOrder (Game *g)
 
void PopularMoveOrders (DString *dstr, uint count)
 
void ThemeReport (DString *dstr, uint argc, const char **argv)
 
void AddEndMaterial (matSigT ms, bool inFilter)
 
void EndMaterialReport (DString *dstr, const char *repGames, const char *allGames)
 
uintSelectGames (char type, uint number)
 

Static Public Member Functions

static uint FormatFromStr (const char *str)
 

Detailed Description

Definition at line 128 of file optable.h.

Constructor & Destructor Documentation

◆ OpTable() [1/2]

OpTable::OpTable ( const char *  type,
Game g,
PBook ecoBook 
)
inline

Definition at line 178 of file optable.h.

◆ OpTable() [2/2]

OpTable::OpTable ( const char *  type,
Game g 
)
inline

Definition at line 181 of file optable.h.

◆ ~OpTable()

OpTable::~OpTable ( )
inline

Definition at line 182 of file optable.h.

Member Function Documentation

◆ Add()

bool OpTable::Add ( OpLine line)

Definition at line 646 of file optable.cpp.

◆ AddEndMaterial()

void OpTable::AddEndMaterial ( matSigT  ms,
bool  inFilter 
)

Definition at line 2169 of file optable.cpp.

◆ AddMoveOrder()

uint OpTable::AddMoveOrder ( Game g)

Definition at line 1965 of file optable.cpp.

◆ AvgElo()

uint OpTable::AvgElo ( colorT  color,
uint count,
uint oppScore,
uint oppPerf 
)

Definition at line 1925 of file optable.cpp.

◆ AvgLength()

uint OpTable::AvgLength ( resultT  result)

Definition at line 1910 of file optable.cpp.

◆ BestGames()

void OpTable::BestGames ( DString dstr,
uint  count,
const char *  rtype 
)

Definition at line 1451 of file optable.cpp.

◆ Clear()

void OpTable::Clear ( void  )

Definition at line 516 of file optable.cpp.

◆ ClearNotes()

void OpTable::ClearNotes ( void  )

Definition at line 540 of file optable.cpp.

◆ DumpLines()

void OpTable::DumpLines ( FILE *  fp)

Definition at line 759 of file optable.cpp.

◆ EndMaterialReport()

void OpTable::EndMaterialReport ( DString dstr,
const char *  repGames,
const char *  allGames 
)

Definition at line 2179 of file optable.cpp.

◆ FormatFromStr()

uint OpTable::FormatFromStr ( const char *  str)
static

Definition at line 555 of file optable.cpp.

◆ GetEco()

const char* OpTable::GetEco ( ) const
inline

Definition at line 197 of file optable.h.

◆ GetMaxExtraMoves()

uint OpTable::GetMaxExtraMoves ( void  )
inline

Definition at line 209 of file optable.h.

◆ GetMaxTableLines()

uint OpTable::GetMaxTableLines ( void  )
inline

Definition at line 205 of file optable.h.

◆ GetNumLines()

uint OpTable::GetNumLines ( void  )
inline

Definition at line 212 of file optable.h.

◆ GetTheoryCount()

uint OpTable::GetTheoryCount ( )
inline

Definition at line 190 of file optable.h.

◆ GetTotalCount()

uint OpTable::GetTotalCount ( )
inline

Definition at line 189 of file optable.h.

◆ GuessNumRows()

void OpTable::GuessNumRows ( void  )

Definition at line 716 of file optable.cpp.

◆ Init()

void OpTable::Init ( const char *  type,
Game g,
PBook ecoBook 
)

Definition at line 462 of file optable.cpp.

◆ MakeRows()

void OpTable::MakeRows ( void  )

Definition at line 839 of file optable.cpp.

◆ PercentFreq()

uint OpTable::PercentFreq ( resultT  result)

Definition at line 629 of file optable.cpp.

◆ PercentScore()

uint OpTable::PercentScore ( void  )

Definition at line 587 of file optable.cpp.

◆ PopularMoveOrders()

void OpTable::PopularMoveOrders ( DString dstr,
uint  count 
)

Definition at line 2025 of file optable.cpp.

◆ PrintHTML()

void OpTable::PrintHTML ( DString str,
const char *  title,
const char *  comment 
)

Definition at line 1133 of file optable.cpp.

◆ PrintLaTeX()

void OpTable::PrintLaTeX ( DString dstr,
const char *  title,
const char *  comment 
)

Definition at line 1042 of file optable.cpp.

◆ PrintStemLine() [1/2]

void OpTable::PrintStemLine ( DString dstr,
uint  format,
bool  exclude 
)

Definition at line 1005 of file optable.cpp.

◆ PrintStemLine() [2/2]

void OpTable::PrintStemLine ( DString dstr)
inline

Definition at line 225 of file optable.h.

◆ PrintTable()

void OpTable::PrintTable ( DString dstr,
const char *  title,
const char *  comment 
)

Definition at line 1021 of file optable.cpp.

◆ PrintText()

void OpTable::PrintText ( DString str,
const char *  title,
const char *  comment,
bool  htext 
)

Definition at line 1193 of file optable.cpp.

◆ SelectGames()

uint * OpTable::SelectGames ( char  type,
uint  number 
)

Definition at line 2292 of file optable.cpp.

◆ SetDecimalChar()

void OpTable::SetDecimalChar ( char  c)
inline

Definition at line 187 of file optable.h.

◆ SetExcludeMove()

void OpTable::SetExcludeMove ( const char *  s)
inline

Definition at line 192 of file optable.h.

◆ SetFormat()

void OpTable::SetFormat ( const char *  str)

Definition at line 575 of file optable.cpp.

◆ SetMaxExtraMoves()

void OpTable::SetMaxExtraMoves ( uint  nmoves)
inline

Definition at line 206 of file optable.h.

◆ SetMaxTableLines()

void OpTable::SetMaxTableLines ( uint  nlines)
inline

Definition at line 200 of file optable.h.

◆ SetMaxThemeMoveNumber()

void OpTable::SetMaxThemeMoveNumber ( uint  x)
inline

Definition at line 213 of file optable.h.

◆ SetNumRows()

void OpTable::SetNumRows ( uint  nrows)
inline

Definition at line 198 of file optable.h.

◆ ThemeReport()

void OpTable::ThemeReport ( DString dstr,
uint  argc,
const char **  argv 
)

Definition at line 2074 of file optable.cpp.

◆ TheoryPercent()

uint OpTable::TheoryPercent ( void  )

Definition at line 603 of file optable.cpp.

◆ TheoryScore()

uint OpTable::TheoryScore ( void  )

Definition at line 619 of file optable.cpp.

◆ TopEcoCodes()

void OpTable::TopEcoCodes ( DString dstr,
uint  count 
)

Definition at line 1806 of file optable.cpp.

◆ TopPlayers()

void OpTable::TopPlayers ( DString dstr,
colorT  c,
uint  count 
)

Definition at line 1587 of file optable.cpp.


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