SolveState

Undocumented in source.

Constructors

this
this(LineWriter lineWriter)
Undocumented in source.
this
this(LineWriter lineWriter, RuleValues ruleValues)
Undocumented in source.

Members

Functions

canSplit
bool canSplit(Chunk[] line, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
computeCost
void computeCost(Chunk[] line, Writer* writer)
Undocumented in source. Be warned that the author may not have intended to support it.
computeNewLinePenality
uint computeNewLinePenality(Chunk c, uint column, uint length, uint previousColumn, const(Span) previousSpan)
Undocumented in source. Be warned that the author may not have intended to support it.
computeUsedSpans
void computeUsedSpans(Chunk[] line)
Undocumented in source. Be warned that the author may not have intended to support it.
endLine
void endLine(Chunk[] line, size_t i, uint length, uint pageWidth, uint penality)
Undocumented in source. Be warned that the author may not have intended to support it.
getLinePrefix
LinePrefix getLinePrefix(Chunk[] line, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
isBetterThan
bool isBetterThan(SolveState rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
isDeadSubTree
bool isDeadSubTree(SolveState best)
Undocumented in source. Be warned that the author may not have intended to support it.
isSplit
bool isSplit(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
isSplit
bool isSplit(size_t from, size_t to)
Undocumented in source. Be warned that the author may not have intended to support it.
isUsed
bool isUsed(Span span)
Undocumented in source. Be warned that the author may not have intended to support it.
mustSplit
bool mustSplit(Chunk[] line, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
newLineCount
uint newLineCount(Chunk[] line, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(SolveState rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(SolveState* rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
updateSunk
void updateSunk(Chunk[] line, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

cost
uint cost;
Undocumented in source.
overflow
uint overflow;
Undocumented in source.
prefix
LinePrefix prefix;
Undocumented in source.
ruleValues
RuleValues ruleValues;
Undocumented in source.
sunk
uint sunk;
Undocumented in source.

Meta