53#ifndef __ADS_MoveStructure
54 #define __ADS_MoveStructure
123 std::span< const std::uint64_t > q ,
124 std::span< const std::uint32_t >
tag , std::uint64_t n );
127 [[nodiscard]] std::size_t
intervals(
void )
const {
return( f_m ); }
130 [[nodiscard]] std::uint64_t
size(
void )
const {
return( f_n ); }
134 [[nodiscard]] std::uint64_t
start( std::size_t i )
const {
135 return( i == f_m ? f_n : f_P.get( i * std::size_t( f_wp ) , f_wp ) );
139 [[nodiscard]] std::uint32_t
tag( std::size_t i )
const {
140 return( std::uint32_t( f_tag.get( i * std::size_t( f_wt ) , f_wt ) ) );
156 [[nodiscard]] std::pair< std::uint64_t , std::size_t >
157 move( std::uint64_t x , std::size_t i )
const;
162 [[nodiscard]] std::size_t
interval( std::uint64_t x )
const;
180 std::uint64_t f_n = 0;
182 int f_wp = 1 , f_wd = 1 , f_wt = 1;
198#include "ADS/succinct/impl/MoveStructure.tpp"
The vector of bits on which the succinct structures and the integer codes of ADS are built: the bits ...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
a vector of bits packed in words of 64 bits
Definition BitVector.h:479
std::uint32_t tag(std::size_t i) const
the tag of the interval
Definition MoveStructure.h:139
MoveStructure(void)=default
the permutation of no place
std::size_t sizeInBits(void) const
the bits of the starts, of the images, of their intervals and of the tags
MoveStructure(std::span< const std::uint64_t > p, std::span< const std::uint64_t > q, std::span< const std::uint32_t > tag, std::uint64_t n)
the permutation of the intervals that start at (sorted, the first at 0) onto those that start at ,...
std::size_t interval(std::uint64_t x) const
the interval of , by a binary search on the starts (for the first place of a walk)
std::uint64_t size(void) const
the number of places,
Definition MoveStructure.h:130
static constexpr std::string_view persistName
the name of the structure in a file [see Persistence.h]
Definition MoveStructure.h:171
std::pair< std::uint64_t, std::size_t > move(std::uint64_t x, std::size_t i) const
the image of , of the interval , and its interval
void persist(A &a)
the members written to, or read from, the archive [see Persistence.h]
std::size_t intervals(void) const
the number of the intervals, after the balance
Definition MoveStructure.h:127
std::uint64_t start(std::size_t i) const
the start of the interval , for equal to intervals()
Definition MoveStructure.h:134