Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::RLE_Write_Options Struct Reference

Options controlling Conway RLE output. More...

#include <ca-io.H>

Collaboration diagram for Aleph::CA::RLE_Write_Options:
[legend]

Public Attributes

std::string rule = "B3/S23"
 rule field emitted in the header
 
std::string name
 optional #N line
 
std::string comment
 optional #C lines, split on newlines
 
bool trim_dead_border = false
 crop to the live-cell bounding box
 
std::size_t line_width = 70
 body wrap width; 0 disables wrapping
 

Detailed Description

Options controlling Conway RLE output.

The default (trim_dead_border == false) writes a full-frame snapshot whose declared dimensions match the lattice exactly, which makes lattice -> RLE -> lattice round-trips exact. Set trim_dead_border to true for compact, pattern-library-style RLE.

Definition at line 158 of file ca-io.H.

Member Data Documentation

◆ comment

std::string Aleph::CA::RLE_Write_Options::comment

optional #C lines, split on newlines

Definition at line 162 of file ca-io.H.

◆ line_width

std::size_t Aleph::CA::RLE_Write_Options::line_width = 70

body wrap width; 0 disables wrapping

Definition at line 164 of file ca-io.H.

◆ name

std::string Aleph::CA::RLE_Write_Options::name

optional #N line

Definition at line 161 of file ca-io.H.

Referenced by TEST().

◆ rule

std::string Aleph::CA::RLE_Write_Options::rule = "B3/S23"

rule field emitted in the header

Definition at line 160 of file ca-io.H.

◆ trim_dead_border

bool Aleph::CA::RLE_Write_Options::trim_dead_border = false

crop to the live-cell bounding box

Definition at line 163 of file ca-io.H.

Referenced by TEST().


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