vg
tools for working with variation graphs
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
util.hpp File Reference
#include "handlegraph/types.hpp"
#include <cassert>

Classes

struct  handlegraph::number_bool_packing
 Define a way to pack an integer and an orientation bit into a handle_t. More...
 

Namespaces

namespace  handlegraph
 

Functions

uint64_t & handlegraph::as_integer (handle_t &handle)
 View a handle as an integer.
 
const uint64_t & handlegraph::as_integer (const handle_t &handle)
 View a const handle as a const integer.
 
handle_thandlegraph::as_handle (uint64_t &value)
 View an integer as a handle.
 
const handle_thandlegraph::as_handle (const uint64_t &value)
 View a const integer as a const handle.
 
bool handlegraph::operator< (const handle_t &a, const handle_t &b)
 It's convenient to be able to sort handles.
 
uint64_t & handlegraph::as_integer (path_handle_t &handle)
 View a path handle as an integer.
 
const uint64_t & handlegraph::as_integer (const path_handle_t &handle)
 View a const path handle as a const integer.
 
path_handle_thandlegraph::as_path_handle (uint64_t &value)
 View an integer as a path handle.
 
const path_handle_thandlegraph::as_path_handle (const uint64_t &value)
 View a const integer as a const path handle.
 
bool handlegraph::operator< (const path_handle_t &a, const path_handle_t &b)
 It's convenient to be able to sort path handles.
 
int64_t * handlegraph::as_integers (step_handle_t &step_handle)
 View a step handle as an integer array.
 
const int64_t * handlegraph::as_integers (const step_handle_t &step_handle)
 View a const step handle as a const integer array.
 
bool handlegraph::operator< (const step_handle_t &a, const step_handle_t &b)
 Sort of step handles is based on first then second integers.
 
uint64_t & handlegraph::as_integer (net_handle_t &handle)
 View a net_handle as an integer.
 
const uint64_t & handlegraph::as_integer (const net_handle_t &handle)
 View a const net_handle as a const integer.
 
net_handle_thandlegraph::as_net_handle (uint64_t &value)
 View an integer as a net handle.
 
const net_handle_thandlegraph::as_net_handle (const uint64_t &value)
 View a const integer as a const handle.
 
bool handlegraph::operator< (const net_handle_t &a, const net_handle_t &b)
 It's convenient to be able to sort handles.
 

Detailed Description

Tools for handle graph implementers to pack and unpack handles.