libscid snapshot+e944e108ed8b
Chess applications made easy.
Source on GitHub License GPL v2
Loading...
Searching...
No Matches
traversal.h File Reference

PGN-order traversal helpers for game cursors. More...

+ Include dependency graph for traversal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  scid
 Public namespace for libscid.
 
namespace  scid::core
 Chess games, positions, movetext and notation.
 
namespace  scid::core::pgn
 PGN import, export and movetext traversal helpers.
 

Functions

bool scid::core::pgn::nextLocation (GameCursor &cursor)
 Advances a cursor to the next location in PGN traversal order.
 
bool scid::core::pgn::seekLocation (GameCursor &cursor, unsigned location)
 Moves a cursor to a one-based PGN traversal location.
 
unsigned scid::core::pgn::locationOf (const GameCursor &cursor)
 Returns the one-based PGN traversal location of a cursor.
 
unsigned scid::core::pgn::offsetOf (const GameCursor &cursor)
 Returns the PGN display offset for a cursor.
 

Detailed Description

PGN-order traversal helpers for game cursors.