SDSL 3.0.3
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::int_vector_reference< bit_vector > Class Reference

#include <int_vector.hpp>

Public Types

typedef bool value_type
 
typedef bit_vector::value_type value_type
 

Public Member Functions

 int_vector_reference ()=delete
 Default constructor explicitly deleted.
 
constexpr int_vector_reference (int_vector_reference const &) noexcept=default
 Copy and move explicitly defaulted.
 
constexpr int_vector_reference (int_vector_reference &&) noexcept=default
 
 int_vector_reference (uint64_t *word, uint8_t offset, uint8_t) noexcept
 Constructor for the reference class.
 
int_vector_referenceoperator= (bool x) noexcept
 Assignment operator for the proxy class.
 
int_vector_referenceoperator= (int_vector_reference const &x) noexcept
 
int_vector_referenceoperator= (int_vector_reference &&x) noexcept
 
 operator bool () const noexcept
 Cast the reference to a bool.
 
bool operator== (int_vector_reference const &x) const noexcept
 
bool operator< (int_vector_reference const &x) const noexcept
 
 int_vector_reference ()=delete
 Default constructor explicitly deleted.
 
constexpr int_vector_reference (int_vector_reference const &) noexcept=default
 Copy and move explicitly defaulted.
 
constexpr int_vector_reference (int_vector_reference &&) noexcept=default
 
 int_vector_reference (value_type *word, uint8_t offset, uint8_t len) noexcept
 Constructor for the reference class.
 
int_vector_referenceoperator= (value_type x) noexcept
 Assignment operator for the proxy class.
 
int_vector_referenceoperator= (int_vector_reference const &x) noexcept
 
int_vector_referenceoperator= (int_vector_reference &&x) noexcept
 
 operator value_type () const noexcept
 Cast the reference to a int_vector<>::value_type.
 
int_vector_referenceoperator++ () noexcept
 Prefix increment of the proxy object.
 
value_type operator++ (int) noexcept
 Postfix increment of the proxy object.
 
int_vector_referenceoperator-- () noexcept
 Prefix decrement of the proxy object.
 
value_type operator-- (int) noexcept
 Postfix decrement of the proxy object.
 
int_vector_referenceoperator+= (const value_type x) noexcept
 Add assign from the proxy object.
 
int_vector_referenceoperator-= (const value_type x) noexcept
 Subtract assign from the proxy object.
 
bool operator== (int_vector_reference const &x) const noexcept
 
bool operator< (int_vector_reference const &x) const noexcept
 

Detailed Description

Definition at line 1093 of file int_vector.hpp.

Member Typedef Documentation

◆ value_type [1/2]

Definition at line 944 of file int_vector.hpp.

◆ value_type [2/2]

typedef bool sdsl::int_vector_reference< bit_vector >::value_type

Definition at line 1096 of file int_vector.hpp.

Constructor & Destructor Documentation

◆ int_vector_reference() [1/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( )
delete

Default constructor explicitly deleted.

◆ int_vector_reference() [2/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( int_vector_reference< bit_vector > const & )
constexprdefaultnoexcept

Copy and move explicitly defaulted.

◆ int_vector_reference() [3/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( int_vector_reference< bit_vector > && )
constexprdefaultnoexcept

◆ int_vector_reference() [4/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( uint64_t * word,
uint8_t offset,
uint8_t  )
inlinenoexcept

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])

Definition at line 1113 of file int_vector.hpp.

◆ int_vector_reference() [5/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( )
delete

Default constructor explicitly deleted.

◆ int_vector_reference() [6/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( int_vector_reference< bit_vector > const & )
constexprdefaultnoexcept

Copy and move explicitly defaulted.

◆ int_vector_reference() [7/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( int_vector_reference< bit_vector > && )
constexprdefaultnoexcept

◆ int_vector_reference() [8/8]

sdsl::int_vector_reference< bit_vector >::int_vector_reference ( value_type * word,
uint8_t offset,
uint8_t len )
inlinenoexcept

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->width()!!!

Definition at line 963 of file int_vector.hpp.

Member Function Documentation

◆ operator bool()

sdsl::int_vector_reference< bit_vector >::operator bool ( ) const
inlinenoexcept

Cast the reference to a bool.

Definition at line 1135 of file int_vector.hpp.

◆ operator value_type()

sdsl::int_vector_reference< bit_vector >::operator value_type ( ) const
inlinenoexcept

Cast the reference to a int_vector<>::value_type.

Definition at line 993 of file int_vector.hpp.

◆ operator++() [1/2]

int_vector_reference & sdsl::int_vector_reference< bit_vector >::operator++ ( )
inlinenoexcept

Prefix increment of the proxy object.

Definition at line 999 of file int_vector.hpp.

◆ operator++() [2/2]

value_type sdsl::int_vector_reference< bit_vector >::operator++ ( int )
inlinenoexcept

Postfix increment of the proxy object.

Definition at line 1007 of file int_vector.hpp.

◆ operator+=()

int_vector_reference & sdsl::int_vector_reference< bit_vector >::operator+= ( const value_type x)
inlinenoexcept

Add assign from the proxy object.

Definition at line 1031 of file int_vector.hpp.

◆ operator--() [1/2]

int_vector_reference & sdsl::int_vector_reference< bit_vector >::operator-- ( )
inlinenoexcept

Prefix decrement of the proxy object.

Definition at line 1015 of file int_vector.hpp.

◆ operator--() [2/2]

value_type sdsl::int_vector_reference< bit_vector >::operator-- ( int )
inlinenoexcept

Postfix decrement of the proxy object.

Definition at line 1023 of file int_vector.hpp.

◆ operator-=()

int_vector_reference & sdsl::int_vector_reference< bit_vector >::operator-= ( const value_type x)
inlinenoexcept

Subtract assign from the proxy object.

Definition at line 1039 of file int_vector.hpp.

◆ operator<() [1/2]

bool sdsl::int_vector_reference< bit_vector >::operator< ( int_vector_reference< bit_vector > const & x) const
inlinenoexcept

Definition at line 1051 of file int_vector.hpp.

◆ operator<() [2/2]

bool sdsl::int_vector_reference< bit_vector >::operator< ( int_vector_reference< bit_vector > const & x) const
inlinenoexcept

Definition at line 1145 of file int_vector.hpp.

◆ operator=() [1/6]

int_vector_reference & sdsl::int_vector_reference< bit_vector >::operator= ( bool x)
inlinenoexcept

Assignment operator for the proxy class.

Definition at line 1116 of file int_vector.hpp.

◆ operator=() [2/6]

Definition at line 987 of file int_vector.hpp.

◆ operator=() [3/6]

Definition at line 1129 of file int_vector.hpp.

◆ operator=() [4/6]

Definition at line 982 of file int_vector.hpp.

◆ operator=() [5/6]

Definition at line 1125 of file int_vector.hpp.

◆ operator=() [6/6]

Assignment operator for the proxy class.

The integer x is assign to the referenced position in the t_int_vector with the specified width of the int_vector

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

Definition at line 976 of file int_vector.hpp.

◆ operator==() [1/2]

bool sdsl::int_vector_reference< bit_vector >::operator== ( int_vector_reference< bit_vector > const & x) const
inlinenoexcept

Definition at line 1046 of file int_vector.hpp.

◆ operator==() [2/2]

bool sdsl::int_vector_reference< bit_vector >::operator== ( int_vector_reference< bit_vector > const & x) const
inlinenoexcept

Definition at line 1140 of file int_vector.hpp.


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