wxMaxima
Loading...
Searching...
No Matches
Functions
WorksheetEvalQueue Namespace Reference

The document-pure "add cells to the evaluation queue" helpers. More...

Functions

bool ShouldEnqueue (const GroupCell &cell)
 Is this group cell eligible for evaluation?
 
void Enqueue (GroupCell &cell, EvaluationQueue &queue)
 Append one group cell to the queue if it is eligible.
 
void EnqueueRange (GroupCell *start, const GroupCell *end, EvaluationQueue &queue)
 Enqueue every eligible cell in the inclusive range [start, end].
 

Detailed Description

The document-pure "add cells to the evaluation queue" helpers.

Function Documentation

◆ Enqueue()

void WorksheetEvalQueue::Enqueue ( GroupCell cell,
EvaluationQueue queue 
)

Append one group cell to the queue if it is eligible.

Marks the cell's editor as containing (not-yet-evaluated) changes - which greys out its stale output - and then queues the cell. A no-op for cells ShouldEnqueue() rejects.

◆ EnqueueRange()

void WorksheetEvalQueue::EnqueueRange ( GroupCell start,
const GroupCell end,
EvaluationQueue queue 
)

Enqueue every eligible cell in the inclusive range [start, end].

Walks the group-cell list forward from start, calling Enqueue() on each cell, and stops after the cell equal to end. A null end means "to the end of the document".

◆ ShouldEnqueue()

bool WorksheetEvalQueue::ShouldEnqueue ( const GroupCell cell)

Is this group cell eligible for evaluation?

Only a visible code cell that actually owns an editor can be evaluated; text and sectioning cells, hidden (folded-away) cells and the odd editor-less code cell are skipped.