vg
tools for working with variation graphs
Static Public Member Functions | List of all members
handlegraph::number_bool_packing Struct Reference

Define a way to pack an integer and an orientation bit into a handle_t. More...

#include <util.hpp>

Static Public Member Functions

static uint64_t unpack_number (const handle_t &handle)
 Extract the packed integer. More...
 
static bool unpack_bit (const handle_t &handle)
 Extract the packed bit. More...
 
static handle_t pack (const uint64_t &number, const bool &bit)
 Pack up an integer and a bit into a handle. More...
 
static handle_t toggle_bit (const handle_t &handle)
 Toggle the packed bit and return a new handle. More...
 

Detailed Description

Define a way to pack an integer and an orientation bit into a handle_t.

Member Function Documentation

◆ pack()

static handle_t handlegraph::number_bool_packing::pack ( const uint64_t &  number,
const bool &  bit 
)
inlinestatic

Pack up an integer and a bit into a handle.

◆ toggle_bit()

static handle_t handlegraph::number_bool_packing::toggle_bit ( const handle_t handle)
inlinestatic

Toggle the packed bit and return a new handle.

◆ unpack_bit()

static bool handlegraph::number_bool_packing::unpack_bit ( const handle_t handle)
inlinestatic

Extract the packed bit.

◆ unpack_number()

static uint64_t handlegraph::number_bool_packing::unpack_number ( const handle_t handle)
inlinestatic

Extract the packed integer.


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