SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
A proxy class that acts as a reference to an integer of length len
bits in a int_vector.
More...
#include <int_vector.hpp>
Public Member Functions | |
int_vector_reference (typename int_vector::value_type *word, uint8_t offset, uint8_t len) | |
Constructor for the reference class. | |
int_vector_reference & | operator= (typename int_vector::value_type x) |
Assignment operator for the proxy class. | |
int_vector_reference & | operator= (const int_vector_reference &x) |
operator typename int_vector::value_type () const | |
Cast the reference to a int_vector<>::value_type. | |
bool | operator== (const int_vector_reference &x) const |
bool | operator< (const int_vector_reference &x) const |
A proxy class that acts as a reference to an integer of length len
bits in a int_vector.
sdsl::int_vector_reference< int_vector >::int_vector_reference | ( | typename int_vector::value_type * | word, |
uint8_t | offset, | ||
uint8_t | len | ||
) | [inline] |
Constructor for the reference class.
word | Pointer to the corresponding 64bit word in the int_vector. |
offset | Offset to the starting bit (offset in [0..63]) |
len | length of the integer, should be v->get_int_width()!!! |
int_vector_reference& sdsl::int_vector_reference< int_vector >::operator= | ( | typename int_vector::value_type | x | ) | [inline] |
Assignment operator for the proxy class.
The integer x is assign to the referenced position in the int_vector with the specified fixedIntWidth of the int_vector
x | 64bit integer to assign |