vg
tools for working with variation graphs
|
#include <genome_state.hpp>
Public Member Functions | |
virtual | ~GenomeStateCommand ()=default |
virtual GenomeStateCommand * | execute (GenomeState &state) const =0 |
Represents a modification of a GenomeState. We use a command pattern to enable undo-ability. Applying a command always returns a command that will undo what you did.
|
virtualdefault |
|
pure virtual |
Execute this command on the given state and return the reverse command. Generally ends up calling a command-type-specific method on the GenomeState that does the actual work.
Implemented in vg::ReplaceLocalHaplotypeCommand, vg::ReplaceSnarlHaplotypeCommand, vg::AppendHaplotypeCommand, vg::SwapHaplotypesCommand, vg::DeleteHaplotypeCommand, and vg::InsertHaplotypeCommand.