SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
 All Classes Namespaces Files Functions Variables Typedefs Friends
Public Member Functions
sdsl::int_vector_reference< int_vector > Class Template Reference

A proxy class that acts as a reference to an integer of length len bits in a int_vector. More...

#include <int_vector.hpp>

List of all members.

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_referenceoperator= (typename int_vector::value_type x)
 Assignment operator for the proxy class.
int_vector_referenceoperator= (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

Detailed Description

template<class int_vector>
class sdsl::int_vector_reference< int_vector >

A proxy class that acts as a reference to an integer of length len bits in a int_vector.


Constructor & Destructor Documentation

template<class 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.

Parameters:
wordPointer to the corresponding 64bit word in the int_vector.
offsetOffset to the starting bit (offset in [0..63])
lenlength of the integer, should be v->get_int_width()!!!

Member Function Documentation

template<class int_vector >
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

Parameters:
x64bit integer to assign
Returns:
A const_reference to the assigned reference

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