libsxbp  v0.27
Experimental generation of 2D spiralling lines based on input binary data.
Data Fields
sxbp_spiral_t Struct Reference

Struct type representing a Spiral figure, in any state of completion. More...

#include <saxbospiral.h>

Collaboration diagram for sxbp_spiral_t:
Collaboration graph
[legend]

Data Fields

uint32_t size
 count of lines in the spiral
 
sxbp_line_t * lines
 dynamic array of lines in the spiral
 
bool collides
 whether this spiral collides or not
 
uint32_t solved_count
 the count of lines solved so far (index of next line to solve)
 
uint32_t seconds_spent
 the count of seconds spent solving the spiral More...
 
uint32_t seconds_accuracy
 stores the number of seconds' accuracy of the seconds_spent field
 

Detailed Description

Struct type representing a Spiral figure, in any state of completion.

This is the most important data type in the whole library, and is passed to and from many different library functions. A partially-complete spiral object may be produced from binary data, and a fully-complete spiral may be produced from the partially complete one via the routines in the library.

Field Documentation

uint32_t sxbp_spiral_t::seconds_spent

the count of seconds spent solving the spiral

This measures CPU compute-time, not wall-clock time. It is intended to give a semi-accurate figure for quantifying how much continuous compute-time was needed to generate a given spiral.


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