SDSL 3.0.1
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 (const int_vector_mapper &)=delete
 
int_vector_mapperoperator= (const int_vector_mapper &)=delete
 
 ~int_vector_mapper ()
 
 int_vector_mapper (int_vector_mapper &&ivm)
 
int_vector_mapperoperator= (int_vector_mapper &&ivm)
 
 int_vector_mapper (const std::string &key, const cache_config &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[] (const size_type &idx) const -> typename int_vector< t_width >::const_reference
 
auto operator[] (const size_type &idx) -> typename int_vector< t_width >::reference
 
const uint64_t * 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== (const container &v) const
 
bool operator== (const int_vector< t_width > &v) const
 
bool operator== (const int_vector_mapper &v) const
 
template<class container >
bool operator!= (const container &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 18 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 23 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 25 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 24 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 26 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 ( const int_vector_mapper< t_width, t_mode > &  )
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 47 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 121 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 ( const std::string &  key,
const cache_config config 
)
inline

Definition at line 148 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 152 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 270 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 280 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 224 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 324 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 319 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 282 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 283 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 294 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>
const uint64_t * sdsl::int_vector_mapper< t_width, t_mode >::data ( ) const
inline

Definition at line 293 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 342 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 275 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 281 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 216 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 337 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 299 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!= ( const container &  v) const
inline

Definition at line 333 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= ( const int_vector_mapper< t_width, t_mode > &  )
delete

◆ 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 > &&  ivm)
inline

Definition at line 134 of file int_vector_mapper.hpp.

◆ 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== ( const container &  v) const
inline

Definition at line 326 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== ( const int_vector< t_width > &  v) const
inline

Definition at line 330 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== ( const int_vector_mapper< t_width, t_mode > &  v) const
inline

Definition at line 331 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[] ( const size_type idx) -> typename int_vector<t_width>::reference
inline

Definition at line 288 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[] ( const size_type idx) const -> typename int_vector<t_width>::const_reference
inline

Definition at line 284 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 305 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 263 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 300 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 223 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 217 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 218 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 30 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>
constexpr uint8_t sdsl::int_vector_mapper< t_width, t_mode >::fixed_int_width = t_width
staticconstexpr

Definition at line 27 of file int_vector_mapper.hpp.


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