Define a way to pack an integer and an orientation bit into a handle_t.
More...
#include <util.hpp>
Define a way to pack an integer and an orientation bit into a handle_t.
◆ 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 |
◆ 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:
- deps/libhandlegraph/src/include/handlegraph/util.hpp