Blender V4.3
blender::bits::BoundedBitSpan Class Reference

#include <BLI_bit_span.hh>

Inherits blender::bits::BitSpan.

Public Member Functions

 BoundedBitSpan ()=default
 
 BoundedBitSpan (const BitInt *data, const int64_t size_in_bits)
 
 BoundedBitSpan (const BitInt *data, const IndexRange bit_range)
 
 BoundedBitSpan (const BitSpan other)
 
int64_t offset () const
 
int64_t full_ints_num () const
 
int64_t final_bits_num () const
 
BoundedBitSpan take_front (const int64_t n) const
 
- Public Member Functions inherited from blender::bits::BitSpan
 BitSpan ()=default
 
 BitSpan (const BitInt *data, const int64_t size_in_bits)
 
 BitSpan (const BitInt *data, const IndexRange bit_range)
 
int64_t size () const
 
bool is_empty () const
 
IndexRange index_range () const
 
BitRef operator[] (const int64_t index) const
 
BitSpan slice (const IndexRange range) const
 
BitSpan take_front (const int64_t n) const
 
BitSpan take_back (const int64_t n) const
 
const BitIntdata () const
 
const IndexRangebit_range () const
 
BitIterator begin () const
 
BitIterator end () const
 

Additional Inherited Members

- Protected Attributes inherited from blender::bits::BitSpan
const BitIntdata_ = nullptr
 
IndexRange bit_range_ = {0, 0}
 

Detailed Description

Same as BitSpan but fulfills the requirements mentioned on is_bounded_span.

Definition at line 176 of file BLI_bit_span.hh.

Constructor & Destructor Documentation

◆ BoundedBitSpan() [1/4]

blender::bits::BoundedBitSpan::BoundedBitSpan ( )
default

◆ BoundedBitSpan() [2/4]

blender::bits::BoundedBitSpan::BoundedBitSpan ( const BitInt * data,
const int64_t size_in_bits )
inline

Definition at line 180 of file BLI_bit_span.hh.

References BLI_assert, and blender::bits::is_bounded_span().

◆ BoundedBitSpan() [3/4]

blender::bits::BoundedBitSpan::BoundedBitSpan ( const BitInt * data,
const IndexRange bit_range )
inline

Definition at line 185 of file BLI_bit_span.hh.

References BLI_assert, and blender::bits::is_bounded_span().

◆ BoundedBitSpan() [4/4]

blender::bits::BoundedBitSpan::BoundedBitSpan ( const BitSpan other)
inlineexplicit

Definition at line 190 of file BLI_bit_span.hh.

References BLI_assert, and blender::bits::is_bounded_span().

Member Function Documentation

◆ final_bits_num()

int64_t blender::bits::BoundedBitSpan::final_bits_num ( ) const
inline

◆ full_ints_num()

int64_t blender::bits::BoundedBitSpan::full_ints_num ( ) const
inline

◆ offset()

int64_t blender::bits::BoundedBitSpan::offset ( ) const
inline

◆ take_front()

BoundedBitSpan blender::bits::BoundedBitSpan::take_front ( const int64_t n) const
inline

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