vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
xg::XGPath Class Reference

#include <xg.hpp>

Public Member Functions

 XGPath (void)=default
 
 ~XGPath (void)=default
 
 XGPath (const std::string &path_name, const std::vector< handle_t > &path, bool is_circular, XG &graph)
 
 XGPath (const XGPath &other)=delete
 
 XGPath (XGPath &&other)=delete
 
XGPathoperator= (const XGPath &other)=delete
 
XGPathoperator= (XGPath &&other)=delete
 
void load (std::istream &in)
 
void load_from_old_version (std::istream &in, uint32_t file_version, const XG &graph)
 
void sync_offsets (const sdsl::rank_support_v< 1 > &old_g_bv_rank, const sdsl::bit_vector::select_1_type &g_bv_select)
 
size_t serialize (std::ostream &out, sdsl::structure_tree_node *v=NULL, std::string name="") const
 
nid_t node (size_t offset) const
 
bool is_reverse (size_t offset) const
 
handle_t local_handle (const handle_t &handle) const
 
handle_t external_handle (const handle_t &handle) const
 
handle_t handle (size_t offset) const
 
handle_t handle_at_position (size_t pos) const
 
size_t handle_start (size_t offset) const
 
size_t step_rank_at_position (size_t pos) const
 

Public Attributes

handle_t min_handle
 
sdsl::enc_vector handles
 
sdsl::rrr_vector offsets
 
sdsl::rrr_vector ::rank_1_type offsets_rank
 
sdsl::rrr_vector ::select_1_type offsets_select
 
bool is_circular = false
 

Constructor & Destructor Documentation

◆ XGPath() [1/4]

xg::XGPath::XGPath ( void  )
default

◆ ~XGPath()

xg::XGPath::~XGPath ( void  )
default

◆ XGPath() [2/4]

xg::XGPath::XGPath ( const std::string &  path_name,
const std::vector< handle_t > &  path,
bool  is_circular,
XG graph 
)

◆ XGPath() [3/4]

xg::XGPath::XGPath ( const XGPath other)
delete

◆ XGPath() [4/4]

xg::XGPath::XGPath ( XGPath &&  other)
delete

Member Function Documentation

◆ external_handle()

handle_t xg::XGPath::external_handle ( const handle_t handle) const

◆ handle()

handle_t xg::XGPath::handle ( size_t  offset) const

◆ handle_at_position()

handle_t xg::XGPath::handle_at_position ( size_t  pos) const

◆ handle_start()

size_t xg::XGPath::handle_start ( size_t  offset) const

◆ is_reverse()

bool xg::XGPath::is_reverse ( size_t  offset) const

◆ load()

void xg::XGPath::load ( std::istream &  in)

◆ load_from_old_version()

void xg::XGPath::load_from_old_version ( std::istream &  in,
uint32_t  file_version,
const XG graph 
)

◆ local_handle()

handle_t xg::XGPath::local_handle ( const handle_t handle) const

◆ node()

nid_t xg::XGPath::node ( size_t  offset) const

◆ operator=() [1/2]

XGPath& xg::XGPath::operator= ( const XGPath other)
delete

◆ operator=() [2/2]

XGPath& xg::XGPath::operator= ( XGPath &&  other)
delete

◆ serialize()

size_t xg::XGPath::serialize ( std::ostream &  out,
sdsl::structure_tree_node *  v = NULL,
std::string  name = "" 
) const

◆ step_rank_at_position()

size_t xg::XGPath::step_rank_at_position ( size_t  pos) const

◆ sync_offsets()

void xg::XGPath::sync_offsets ( const sdsl::rank_support_v< 1 > &  old_g_bv_rank,
const sdsl::bit_vector::select_1_type &  g_bv_select 
)

Member Data Documentation

◆ handles

sdsl::enc_vector xg::XGPath::handles

◆ is_circular

bool xg::XGPath::is_circular = false

◆ min_handle

handle_t xg::XGPath::min_handle

◆ offsets

sdsl::rrr_vector xg::XGPath::offsets

◆ offsets_rank

sdsl::rrr_vector ::rank_1_type xg::XGPath::offsets_rank

◆ offsets_select

sdsl::rrr_vector ::select_1_type xg::XGPath::offsets_select

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