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

#include <snarl_distance_index.hpp>

Public Types

typedef std::uint64_t code_type
 

Static Public Member Functions

static gbwtgraph::Payload encode (MIPayloadValues info)
 
static void set_record_offset (gbwtgraph::Payload &code, size_t record_offset)
 
static void set_parent_record_offset (gbwtgraph::Payload &code, size_t parent_record_offset)
 
static void set_node_record_offset (gbwtgraph::Payload &code, size_t node_record_offset)
 
static void set_node_length (gbwtgraph::Payload &code, size_t node_length)
 
static void set_is_reversed (gbwtgraph::Payload &code, bool is_reversed)
 
static void set_is_trivial_chain (gbwtgraph::Payload &code, bool is_trivial_chain)
 
static void set_parent_is_chain (gbwtgraph::Payload &code, bool parent_is_chain)
 
static void set_parent_is_root (gbwtgraph::Payload &code, bool parent_is_root)
 
static void set_prefix_sum (gbwtgraph::Payload &code, size_t prefix_sum)
 
static void set_chain_component (gbwtgraph::Payload &code, size_t chain_component)
 
static size_t record_offset (const gbwtgraph::Payload code)
 
static size_t parent_record_offset (const gbwtgraph::Payload code)
 
static size_t node_record_offset (const gbwtgraph::Payload code)
 
static size_t node_length (const gbwtgraph::Payload code)
 
static bool is_reversed (const gbwtgraph::Payload code)
 
static bool is_trivial_chain (const gbwtgraph::Payload code)
 
static bool parent_is_chain (const gbwtgraph::Payload code)
 
static bool parent_is_root (const gbwtgraph::Payload code)
 
static size_t prefix_sum (const gbwtgraph::Payload code)
 
static size_t chain_component (const gbwtgraph::Payload code)
 
static MIPayloadValues decode (gbwtgraph::Payload code)
 

Static Public Attributes

constexpr static gbwtgraph::Payload NO_CODE = gbwtgraph::Payload::default_payload()
 
constexpr static std::size_t NO_VALUE = std::numeric_limits<size_t>::max()
 
const static size_t PARENT_RECORD_OFFSET = 0
 
const static size_t PARENT_RECORD_WIDTH = 32
 
const static code_type PARENT_RECORD_MASK = (static_cast<code_type>(1) << PARENT_RECORD_WIDTH) - 1
 
const static size_t NODE_RECORD_OFFSET = 32
 
const static size_t NODE_RECORD_WIDTH = 32
 
const static code_type NODE_RECORD_MASK = (static_cast<code_type>(1) << NODE_RECORD_WIDTH) - 1
 
const static size_t CHAIN_COMPONENT_OFFSET = 0
 
const static size_t CHAIN_COMPONENT_WIDTH = 8
 
const static code_type CHAIN_COMPONENT_MASK = (static_cast<code_type>(1) << CHAIN_COMPONENT_WIDTH) - 1
 
const static size_t PREFIX_SUM_OFFSET = 8
 
const static size_t PREFIX_SUM_WIDTH = 32
 
const static code_type PREFIX_SUM_MASK = (static_cast<code_type>(1) << PREFIX_SUM_WIDTH) - 1
 
const static size_t PARENT_IS_ROOT_OFFSET = 40
 
const static size_t PARENT_IS_CHAIN_OFFSET = 41
 
const static size_t IS_TRIVIAL_CHAIN_OFFSET = 42
 
const static size_t IS_REVERSED_OFFSET = 43
 
const static size_t NODE_LENGTH_OFFSET = 44
 
const static size_t NODE_LENGTH_WIDTH = 12
 
const static code_type NODE_LENGTH_MASK = (static_cast<code_type>(1) << NODE_LENGTH_WIDTH) - 1
 
const static size_t NODE_RECORD_OFFSET_OFFSET = 56
 
const static size_t NODE_RECORD_OFFSET_WIDTH = 8
 
const static code_type NODE_RECORD_OFFSET_MASK = (static_cast<code_type>(1) << NODE_RECORD_OFFSET_WIDTH) - 1
 

Member Typedef Documentation

◆ code_type

typedef std::uint64_t vg::MIPayload::code_type

Member Function Documentation

◆ chain_component()

static size_t vg::MIPayload::chain_component ( const gbwtgraph::Payload  code)
inlinestatic

◆ decode()

static MIPayloadValues vg::MIPayload::decode ( gbwtgraph::Payload  code)
inlinestatic

◆ encode()

static gbwtgraph::Payload vg::MIPayload::encode ( MIPayloadValues  info)
inlinestatic

◆ is_reversed()

static bool vg::MIPayload::is_reversed ( const gbwtgraph::Payload  code)
inlinestatic

◆ is_trivial_chain()

static bool vg::MIPayload::is_trivial_chain ( const gbwtgraph::Payload  code)
inlinestatic

◆ node_length()

static size_t vg::MIPayload::node_length ( const gbwtgraph::Payload  code)
inlinestatic

◆ node_record_offset()

static size_t vg::MIPayload::node_record_offset ( const gbwtgraph::Payload  code)
inlinestatic

◆ parent_is_chain()

static bool vg::MIPayload::parent_is_chain ( const gbwtgraph::Payload  code)
inlinestatic

◆ parent_is_root()

static bool vg::MIPayload::parent_is_root ( const gbwtgraph::Payload  code)
inlinestatic

◆ parent_record_offset()

static size_t vg::MIPayload::parent_record_offset ( const gbwtgraph::Payload  code)
inlinestatic

◆ prefix_sum()

static size_t vg::MIPayload::prefix_sum ( const gbwtgraph::Payload  code)
inlinestatic

◆ record_offset()

static size_t vg::MIPayload::record_offset ( const gbwtgraph::Payload  code)
inlinestatic

◆ set_chain_component()

static void vg::MIPayload::set_chain_component ( gbwtgraph::Payload &  code,
size_t  chain_component 
)
inlinestatic

◆ set_is_reversed()

static void vg::MIPayload::set_is_reversed ( gbwtgraph::Payload &  code,
bool  is_reversed 
)
inlinestatic

◆ set_is_trivial_chain()

static void vg::MIPayload::set_is_trivial_chain ( gbwtgraph::Payload &  code,
bool  is_trivial_chain 
)
inlinestatic

◆ set_node_length()

static void vg::MIPayload::set_node_length ( gbwtgraph::Payload &  code,
size_t  node_length 
)
inlinestatic

◆ set_node_record_offset()

static void vg::MIPayload::set_node_record_offset ( gbwtgraph::Payload &  code,
size_t  node_record_offset 
)
inlinestatic

◆ set_parent_is_chain()

static void vg::MIPayload::set_parent_is_chain ( gbwtgraph::Payload &  code,
bool  parent_is_chain 
)
inlinestatic

◆ set_parent_is_root()

static void vg::MIPayload::set_parent_is_root ( gbwtgraph::Payload &  code,
bool  parent_is_root 
)
inlinestatic

◆ set_parent_record_offset()

static void vg::MIPayload::set_parent_record_offset ( gbwtgraph::Payload &  code,
size_t  parent_record_offset 
)
inlinestatic

◆ set_prefix_sum()

static void vg::MIPayload::set_prefix_sum ( gbwtgraph::Payload &  code,
size_t  prefix_sum 
)
inlinestatic

◆ set_record_offset()

static void vg::MIPayload::set_record_offset ( gbwtgraph::Payload &  code,
size_t  record_offset 
)
inlinestatic

Member Data Documentation

◆ CHAIN_COMPONENT_MASK

const static code_type vg::MIPayload::CHAIN_COMPONENT_MASK = (static_cast<code_type>(1) << CHAIN_COMPONENT_WIDTH) - 1
static

◆ CHAIN_COMPONENT_OFFSET

const static size_t vg::MIPayload::CHAIN_COMPONENT_OFFSET = 0
static

◆ CHAIN_COMPONENT_WIDTH

const static size_t vg::MIPayload::CHAIN_COMPONENT_WIDTH = 8
static

◆ IS_REVERSED_OFFSET

const static size_t vg::MIPayload::IS_REVERSED_OFFSET = 43
static

◆ IS_TRIVIAL_CHAIN_OFFSET

const static size_t vg::MIPayload::IS_TRIVIAL_CHAIN_OFFSET = 42
static

◆ NO_CODE

constexpr gbwtgraph::Payload vg::MIPayload::NO_CODE = gbwtgraph::Payload::default_payload()
staticconstexpr

◆ NO_VALUE

constexpr size_t vg::MIPayload::NO_VALUE = std::numeric_limits<size_t>::max()
staticconstexpr

◆ NODE_LENGTH_MASK

const static code_type vg::MIPayload::NODE_LENGTH_MASK = (static_cast<code_type>(1) << NODE_LENGTH_WIDTH) - 1
static

◆ NODE_LENGTH_OFFSET

const static size_t vg::MIPayload::NODE_LENGTH_OFFSET = 44
static

◆ NODE_LENGTH_WIDTH

const static size_t vg::MIPayload::NODE_LENGTH_WIDTH = 12
static

◆ NODE_RECORD_MASK

const static code_type vg::MIPayload::NODE_RECORD_MASK = (static_cast<code_type>(1) << NODE_RECORD_WIDTH) - 1
static

◆ NODE_RECORD_OFFSET

const static size_t vg::MIPayload::NODE_RECORD_OFFSET = 32
static

◆ NODE_RECORD_OFFSET_MASK

const static code_type vg::MIPayload::NODE_RECORD_OFFSET_MASK = (static_cast<code_type>(1) << NODE_RECORD_OFFSET_WIDTH) - 1
static

◆ NODE_RECORD_OFFSET_OFFSET

const static size_t vg::MIPayload::NODE_RECORD_OFFSET_OFFSET = 56
static

◆ NODE_RECORD_OFFSET_WIDTH

const static size_t vg::MIPayload::NODE_RECORD_OFFSET_WIDTH = 8
static

◆ NODE_RECORD_WIDTH

const static size_t vg::MIPayload::NODE_RECORD_WIDTH = 32
static

◆ PARENT_IS_CHAIN_OFFSET

const static size_t vg::MIPayload::PARENT_IS_CHAIN_OFFSET = 41
static

◆ PARENT_IS_ROOT_OFFSET

const static size_t vg::MIPayload::PARENT_IS_ROOT_OFFSET = 40
static

◆ PARENT_RECORD_MASK

const static code_type vg::MIPayload::PARENT_RECORD_MASK = (static_cast<code_type>(1) << PARENT_RECORD_WIDTH) - 1
static

◆ PARENT_RECORD_OFFSET

const static size_t vg::MIPayload::PARENT_RECORD_OFFSET = 0
static

◆ PARENT_RECORD_WIDTH

const static size_t vg::MIPayload::PARENT_RECORD_WIDTH = 32
static

◆ PREFIX_SUM_MASK

const static code_type vg::MIPayload::PREFIX_SUM_MASK = (static_cast<code_type>(1) << PREFIX_SUM_WIDTH) - 1
static

◆ PREFIX_SUM_OFFSET

const static size_t vg::MIPayload::PREFIX_SUM_OFFSET = 8
static

◆ PREFIX_SUM_WIDTH

const static size_t vg::MIPayload::PREFIX_SUM_WIDTH = 32
static

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