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

#include <BLI_bit_span.hh>

Inherits blender::bits::MutableBitSpan.

Public Member Functions

 MutableBoundedBitSpan ()=default
 
 MutableBoundedBitSpan (BitInt *data, const int64_t size)
 
 MutableBoundedBitSpan (BitInt *data, const IndexRange bit_range)
 
 MutableBoundedBitSpan (const MutableBitSpan other)
 
 operator BoundedBitSpan () const
 
int64_t offset () const
 
int64_t full_ints_num () const
 
int64_t final_bits_num () const
 
MutableBoundedBitSpan take_front (const int64_t n) const
 
BoundedBitSpan as_span () const
 
void copy_from (const BitSpan other)
 
void copy_from (const BoundedBitSpan other)
 
- Public Member Functions inherited from blender::bits::MutableBitSpan
 MutableBitSpan ()=default
 
 MutableBitSpan (BitInt *data, const int64_t size)
 
 MutableBitSpan (BitInt *data, const IndexRange bit_range)
 
int64_t size () const
 
bool is_empty () const
 
IndexRange index_range () const
 
MutableBitRef operator[] (const int64_t index) const
 
MutableBitSpan slice (const IndexRange range) const
 
MutableBitSpan take_front (const int64_t n) const
 
MutableBitSpan take_back (const int64_t n) const
 
BitIntdata () const
 
const IndexRangebit_range () const
 
MutableBitIterator begin () const
 
MutableBitIterator end () const
 
 operator BitSpan () const
 
void set_all ()
 
void reset_all ()
 
void copy_from (const BitSpan other)
 
void copy_from (const BoundedBitSpan other)
 
void set_all (const bool value)
 
void fill (const bool value)
 

Additional Inherited Members

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

Detailed Description

Same as MutableBitSpan but fulfills the requirements mentioned on is_bounded_span.

Definition at line 321 of file BLI_bit_span.hh.

Constructor & Destructor Documentation

◆ MutableBoundedBitSpan() [1/4]

blender::bits::MutableBoundedBitSpan::MutableBoundedBitSpan ( )
default

◆ MutableBoundedBitSpan() [2/4]

blender::bits::MutableBoundedBitSpan::MutableBoundedBitSpan ( BitInt * data,
const int64_t size )
inline

Definition at line 325 of file BLI_bit_span.hh.

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

◆ MutableBoundedBitSpan() [3/4]

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

Definition at line 330 of file BLI_bit_span.hh.

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

◆ MutableBoundedBitSpan() [4/4]

blender::bits::MutableBoundedBitSpan::MutableBoundedBitSpan ( const MutableBitSpan other)
inlineexplicit

Definition at line 335 of file BLI_bit_span.hh.

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

Member Function Documentation

◆ as_span()

BoundedBitSpan blender::bits::MutableBoundedBitSpan::as_span ( ) const
inline

◆ copy_from() [1/2]

void blender::bits::MutableBoundedBitSpan::copy_from ( const BitSpan other)

◆ copy_from() [2/2]

void blender::bits::MutableBoundedBitSpan::copy_from ( const BoundedBitSpan other)

◆ final_bits_num()

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

◆ full_ints_num()

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

◆ offset()

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

◆ operator BoundedBitSpan()

blender::bits::MutableBoundedBitSpan::operator BoundedBitSpan ( ) const
inline

Definition at line 340 of file BLI_bit_span.hh.

◆ take_front()

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

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