SDSL 3.0.3
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::int_vector_mapper< t_width, t_mode > Class Template Reference

#include <int_vector_mapper.hpp>

Public Types

typedef int_vector< t_width >::difference_type difference_type
 
typedef int_vector< t_width >::value_type value_type
 
typedef int_vector< t_width >::size_type size_type
 
typedef int_vector< t_width >::int_width_type width_type
 

Public Member Functions

 int_vector_mapper ()=delete
 
 int_vector_mapper (int_vector_mapper const &)=delete
 
int_vector_mapperoperator= (int_vector_mapper const &)=delete
 
 ~int_vector_mapper ()
 
 int_vector_mapper (int_vector_mapper &&ivm)
 
int_vector_mapperoperator= (int_vector_mapper &&ivm)
 
 int_vector_mapper (std::string const &key, cache_config const &config)
 
 int_vector_mapper (const std::string filename, bool is_plain=false, bool delete_on_close=false)
 
std::string file_name () const
 
width_type width () const
 
void width (const uint8_t new_int_width)
 
size_type size () const
 
void bit_resize (const size_type bit_size)
 
void resize (const size_type size)
 
auto begin () -> typename int_vector< t_width >::iterator
 
auto end () -> typename int_vector< t_width >::iterator
 
auto begin () const -> typename int_vector< t_width >::const_iterator
 
auto end () const -> typename int_vector< t_width >::const_iterator
 
auto cbegin () const -> typename int_vector< t_width >::const_iterator
 
auto cend () const -> typename int_vector< t_width >::const_iterator
 
auto operator[] (size_type const &idx) const -> typename int_vector< t_width >::const_reference
 
auto operator[] (size_type const &idx) -> typename int_vector< t_width >::reference
 
uint64_t const * data () const
 
uint64_t * data ()
 
value_type get_int (size_type idx, const uint8_t len=64) const
 
void set_int (size_type idx, value_type x, const uint8_t len=64)
 
void push_back (value_type x)
 
size_type capacity () const
 
size_type bit_size () const
 
template<class container >
bool operator== (container const &v) const
 
bool operator== (int_vector< t_width > const &v) const
 
bool operator== (int_vector_mapper const &v) const
 
template<class container >
bool operator!= (container const &v) const
 
void flip ()
 
bool empty () const
 

Public Attributes

const size_type append_block_size = 1000000
 

Static Public Attributes

static constexpr uint8_t fixed_int_width = t_width
 

Detailed Description

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
class sdsl::int_vector_mapper< t_width, t_mode >

Definition at line 29 of file int_vector_mapper.hpp.

Member Typedef Documentation

◆ difference_type

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
typedef int_vector<t_width>::difference_type sdsl::int_vector_mapper< t_width, t_mode >::difference_type

Definition at line 34 of file int_vector_mapper.hpp.

◆ size_type

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
typedef int_vector<t_width>::size_type sdsl::int_vector_mapper< t_width, t_mode >::size_type

Definition at line 36 of file int_vector_mapper.hpp.

◆ value_type

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
typedef int_vector<t_width>::value_type sdsl::int_vector_mapper< t_width, t_mode >::value_type

Definition at line 35 of file int_vector_mapper.hpp.

◆ width_type

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
typedef int_vector<t_width>::int_width_type sdsl::int_vector_mapper< t_width, t_mode >::width_type

Definition at line 37 of file int_vector_mapper.hpp.

Constructor & Destructor Documentation

◆ int_vector_mapper() [1/5]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
sdsl::int_vector_mapper< t_width, t_mode >::int_vector_mapper ( )
delete

◆ int_vector_mapper() [2/5]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
sdsl::int_vector_mapper< t_width, t_mode >::int_vector_mapper ( int_vector_mapper< t_width, t_mode > const & )
delete

◆ ~int_vector_mapper()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
sdsl::int_vector_mapper< t_width, t_mode >::~int_vector_mapper ( )
inline

Definition at line 58 of file int_vector_mapper.hpp.

◆ int_vector_mapper() [3/5]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
sdsl::int_vector_mapper< t_width, t_mode >::int_vector_mapper ( int_vector_mapper< t_width, t_mode > && ivm)
inline

Definition at line 132 of file int_vector_mapper.hpp.

◆ int_vector_mapper() [4/5]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
sdsl::int_vector_mapper< t_width, t_mode >::int_vector_mapper ( std::string const & key,
cache_config const & config )
inline

Definition at line 159 of file int_vector_mapper.hpp.

◆ int_vector_mapper() [5/5]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
sdsl::int_vector_mapper< t_width, t_mode >::int_vector_mapper ( const std::string filename,
bool is_plain = false,
bool delete_on_close = false )
inline

Definition at line 163 of file int_vector_mapper.hpp.

Member Function Documentation

◆ begin() [1/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::begin ( ) -> typename int_vector<t_width>::iterator
inline

Definition at line 293 of file int_vector_mapper.hpp.

◆ begin() [2/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::begin ( ) const -> typename int_vector<t_width>::const_iterator
inline

Definition at line 303 of file int_vector_mapper.hpp.

◆ bit_resize()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
void sdsl::int_vector_mapper< t_width, t_mode >::bit_resize ( const size_type bit_size)
inline

Definition at line 247 of file int_vector_mapper.hpp.

◆ bit_size()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
size_type sdsl::int_vector_mapper< t_width, t_mode >::bit_size ( ) const
inline

Definition at line 365 of file int_vector_mapper.hpp.

◆ capacity()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
size_type sdsl::int_vector_mapper< t_width, t_mode >::capacity ( ) const
inline

Definition at line 360 of file int_vector_mapper.hpp.

◆ cbegin()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::cbegin ( ) const -> typename int_vector<t_width>::const_iterator
inline

Definition at line 311 of file int_vector_mapper.hpp.

◆ cend()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::cend ( ) const -> typename int_vector<t_width>::const_iterator
inline

Definition at line 315 of file int_vector_mapper.hpp.

◆ data() [1/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
uint64_t * sdsl::int_vector_mapper< t_width, t_mode >::data ( )
inline

Definition at line 332 of file int_vector_mapper.hpp.

◆ data() [2/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
uint64_t const * sdsl::int_vector_mapper< t_width, t_mode >::data ( ) const
inline

Definition at line 328 of file int_vector_mapper.hpp.

◆ empty()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
bool sdsl::int_vector_mapper< t_width, t_mode >::empty ( ) const
inline

Definition at line 392 of file int_vector_mapper.hpp.

◆ end() [1/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::end ( ) -> typename int_vector<t_width>::iterator
inline

Definition at line 298 of file int_vector_mapper.hpp.

◆ end() [2/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::end ( ) const -> typename int_vector<t_width>::const_iterator
inline

Definition at line 307 of file int_vector_mapper.hpp.

◆ file_name()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
std::string sdsl::int_vector_mapper< t_width, t_mode >::file_name ( ) const
inline

Definition at line 230 of file int_vector_mapper.hpp.

◆ flip()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
void sdsl::int_vector_mapper< t_width, t_mode >::flip ( )
inline

Definition at line 387 of file int_vector_mapper.hpp.

◆ get_int()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
value_type sdsl::int_vector_mapper< t_width, t_mode >::get_int ( size_type idx,
const uint8_t len = 64 ) const
inline

Definition at line 337 of file int_vector_mapper.hpp.

◆ operator!=()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
template<class container >
bool sdsl::int_vector_mapper< t_width, t_mode >::operator!= ( container const & v) const
inline

Definition at line 383 of file int_vector_mapper.hpp.

◆ operator=() [1/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
int_vector_mapper & sdsl::int_vector_mapper< t_width, t_mode >::operator= ( int_vector_mapper< t_width, t_mode > && ivm)
inline

Definition at line 145 of file int_vector_mapper.hpp.

◆ operator=() [2/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
int_vector_mapper & sdsl::int_vector_mapper< t_width, t_mode >::operator= ( int_vector_mapper< t_width, t_mode > const & )
delete

◆ operator==() [1/3]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
template<class container >
bool sdsl::int_vector_mapper< t_width, t_mode >::operator== ( container const & v) const
inline

Definition at line 370 of file int_vector_mapper.hpp.

◆ operator==() [2/3]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
bool sdsl::int_vector_mapper< t_width, t_mode >::operator== ( int_vector< t_width > const & v) const
inline

Definition at line 374 of file int_vector_mapper.hpp.

◆ operator==() [3/3]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
bool sdsl::int_vector_mapper< t_width, t_mode >::operator== ( int_vector_mapper< t_width, t_mode > const & v) const
inline

Definition at line 378 of file int_vector_mapper.hpp.

◆ operator[]() [1/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::operator[] ( size_type const & idx) -> typename int_vector<t_width>::reference
inline

Definition at line 323 of file int_vector_mapper.hpp.

◆ operator[]() [2/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
auto sdsl::int_vector_mapper< t_width, t_mode >::operator[] ( size_type const & idx) const -> typename int_vector<t_width>::const_reference
inline

Definition at line 319 of file int_vector_mapper.hpp.

◆ push_back()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
void sdsl::int_vector_mapper< t_width, t_mode >::push_back ( value_type x)
inline

Definition at line 346 of file int_vector_mapper.hpp.

◆ resize()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
void sdsl::int_vector_mapper< t_width, t_mode >::resize ( const size_type size)
inline

Definition at line 286 of file int_vector_mapper.hpp.

◆ set_int()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
void sdsl::int_vector_mapper< t_width, t_mode >::set_int ( size_type idx,
value_type x,
const uint8_t len = 64 )
inline

Definition at line 341 of file int_vector_mapper.hpp.

◆ size()

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
size_type sdsl::int_vector_mapper< t_width, t_mode >::size ( ) const
inline

Definition at line 243 of file int_vector_mapper.hpp.

◆ width() [1/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
width_type sdsl::int_vector_mapper< t_width, t_mode >::width ( ) const
inline

Definition at line 234 of file int_vector_mapper.hpp.

◆ width() [2/2]

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
void sdsl::int_vector_mapper< t_width, t_mode >::width ( const uint8_t new_int_width)
inline

Definition at line 238 of file int_vector_mapper.hpp.

Member Data Documentation

◆ append_block_size

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
const size_type sdsl::int_vector_mapper< t_width, t_mode >::append_block_size = 1000000

Definition at line 41 of file int_vector_mapper.hpp.

◆ fixed_int_width

template<uint8_t t_width = 0, std::ios_base::openmode t_mode = std::ios_base::out | std::ios_base::in>
uint8_t sdsl::int_vector_mapper< t_width, t_mode >::fixed_int_width = t_width
staticconstexpr

Definition at line 38 of file int_vector_mapper.hpp.


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