Copyright | (c) Christian Maeder, DFKI GmbH 2009 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | non-portable(Logic) |
Safe Haskell | None |
functions to keep the history entries in sync with the actual graph changes
- groupHistory :: DGraph -> DGRule -> DGraph -> DGraph
- changeDGH :: DGraph -> DGChange -> DGraph
- changesDGH :: DGraph -> [DGChange] -> DGraph
- updateDGOnly :: DGraph -> DGChange -> (DGraph, DGChange)
- flatHistory :: SizedList HistElem -> [DGChange]
- negateChange :: DGChange -> DGChange
- getLastChange :: DGraph -> DGChange
- reverseHistory :: SizedList HistElem -> SizedList HistElem
- splitHistory :: DGraph -> DGraph -> (ProofHistory, ProofHistory)
- applyProofHistory :: SizedList HistElem -> DGraph -> DGraph
- undoHistStep :: DGraph -> (DGraph, [DGChange])
- redoHistStep :: DGraph -> (DGraph, [DGChange])
- undoAllChanges :: DGraph -> DGraph
- togglePending :: DGraph -> [LEdge DGLinkLab] -> DGraph
- justTogglePending :: DGraph -> [LEdge DGLinkLab] -> DGraph
- clearHistory :: DGraph -> DGraph
Documentation
groupHistory :: DGraph -> DGRule -> DGraph -> DGraph
group pushd changes, leave history of old graph unchanged
changeDGH :: DGraph -> DGChange -> DGraph
change the given DGraph and the history with the given DGChange.
changesDGH :: DGraph -> [DGChange] -> DGraph
change the given DGraph with a list of changes
updateDGOnly :: DGraph -> DGChange -> (DGraph, DGChange)
change the given DGraph with given DGChange and return a new DGraph and the processed DGChange as well.
flatHistory :: SizedList HistElem -> [DGChange]
negateChange :: DGChange -> DGChange
negate change
getLastChange :: DGraph -> DGChange
get most recent change
reverseHistory :: SizedList HistElem -> SizedList HistElem
reverse the history list
splitHistory :: DGraph -> DGraph -> (ProofHistory, ProofHistory)
get the old history and the new offset
applyProofHistory :: SizedList HistElem -> DGraph -> DGraph
apply the reversed changes to the graph and add them to the history
undoHistStep :: DGraph -> (DGraph, [DGChange])
redoHistStep :: DGraph -> (DGraph, [DGChange])
undoAllChanges :: DGraph -> DGraph
togglePending :: DGraph -> [LEdge DGLinkLab] -> DGraph
toggle the pending flag of the input edges
justTogglePending :: DGraph -> [LEdge DGLinkLab] -> DGraph
toggle the pending flag of the input edges (without history change)
clearHistory :: DGraph -> DGraph
forget history