vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::SwapHaplotypesCommand Struct Reference

#include <genome_state.hpp>

Inheritance diagram for vg::SwapHaplotypesCommand:
vg::GenomeStateCommand

Public Member Functions

virtual GenomeStateCommandexecute (GenomeState &state) const
 
virtual ~SwapHaplotypesCommand ()=default
 
- Public Member Functions inherited from vg::GenomeStateCommand
virtual ~GenomeStateCommand ()=default
 

Public Attributes

pair< const Snarl *, const Snarl * > telomere_pair
 Work on the given pair of telomeres. More...
 
pair< size_t, size_t > to_swap
 Swap the haplotypes at the given ranks. More...
 

Constructor & Destructor Documentation

◆ ~SwapHaplotypesCommand()

virtual vg::SwapHaplotypesCommand::~SwapHaplotypesCommand ( )
virtualdefault

Member Function Documentation

◆ execute()

GenomeStateCommand * vg::SwapHaplotypesCommand::execute ( GenomeState state) const
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.

Implements vg::GenomeStateCommand.

Member Data Documentation

◆ telomere_pair

pair<const Snarl*, const Snarl*> vg::SwapHaplotypesCommand::telomere_pair

Work on the given pair of telomeres.

◆ to_swap

pair<size_t, size_t> vg::SwapHaplotypesCommand::to_swap

Swap the haplotypes at the given ranks.


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