MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::BitSet:

Public Member Functions

auto assign_from_another (_other:&meshlib::BitSet) -> &mut meshlib::BitSet
void reserve (numBits:usize)
void resize (numBits:usize, fillValue:Option< bool >)
void clear ()
void shrink_to_fit ()
auto empty () const -> bool
auto size () const -> usize
auto num_blocks () const -> usize
auto capacity () const -> usize
auto unchecked_test (n:usize) const -> bool
auto unchecked_test_set (n:usize, val:Option< bool >) -> bool
auto test (n:usize) const -> bool
auto test_set (n:usize, val:Option< bool >) -> bool
auto set_range (n:usize, len:usize, val:bool) -> &mut meshlib::BitSet
auto set (n:usize, val:bool) -> &mut meshlib::BitSet
auto set_bit (n:usize) -> &mut meshlib::BitSet
auto set_all () -> &mut meshlib::BitSet
auto atomic_test_set (n:usize) -> bool
auto reset_2 (n:usize, len:usize) -> &mut meshlib::BitSet
auto reset_1 (n:usize) -> &mut meshlib::BitSet
auto reset_0 () -> &mut meshlib::BitSet
auto flip_2 (n:usize, len:usize) -> &mut meshlib::BitSet
auto flip_1 (n:usize) -> &mut meshlib::BitSet
auto flip_0 () -> &mut meshlib::BitSet
void reverse ()
void push_back (val:bool)
void pop_back ()
auto bits () const -> &meshlib::std_vector_uint64_t_MR_Allocator_uint64_t
auto bitand_assign (b:&meshlib::BitSet) -> &mut meshlib::BitSet
auto bitor_assign (b:&meshlib::BitSet) -> &mut meshlib::BitSet
auto xor_assign (b:&meshlib::BitSet) -> &mut meshlib::BitSet
auto sub_assign (b:&meshlib::BitSet) -> &mut meshlib::BitSet
auto subtract (b:&meshlib::BitSet, bShiftInBlocks:core::ffi::c_int) -> &mut meshlib::BitSet
auto all () const -> bool
auto any () const -> bool
auto none () const -> bool
auto count () const -> usize
auto count_bits_and_blocks (maxBits:Option< usize >) const -> meshlib::Owned< meshlib::BitSet_Counts >
auto find_first () const -> usize
auto find_next (n:usize) const -> usize
auto find_last () const -> usize
auto find_first_not_set () const -> usize
auto find_next_not_set (n:usize) const -> usize
auto find_last_not_set () const -> usize
auto nth_set_bit (n:usize) const -> usize
auto is_subset_of (a:&meshlib::BitSet) const -> bool
auto intersects (a:&meshlib::BitSet) const -> bool
void resize_with_reserve (newSize:usize)
void auto_resize_set_range (pos:usize, len:usize, val:Option< bool >)
void auto_resize_set (pos:usize, val:Option< bool >)
auto auto_resize_test_set (pos:usize, val:Option< bool >) -> bool
auto heap_bytes () const -> usize
auto back_id () const -> usize
auto end_id () const -> usize

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::BitSet >
static auto construct_from_another (_other:&meshlib::BitSet) -> meshlib::Owned< meshlib::BitSet >
static auto construct (numBits:usize, fillValue:Option< bool >) -> meshlib::Owned< meshlib::BitSet >
static auto from_blocks (blocks:&mut meshlib::std_vector_uint64_t_MR_Allocator_uint64_t) -> meshlib::Owned< meshlib::BitSet >
static auto begin_id () -> usize
static auto bits_per_block () -> *const usize
static auto npos () -> *const usize
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

std::vector<bool> like container (random-access, size_t - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR::BitSet. Derived classes: Direct: (non-virtual) MR::EdgeBitSet MR::FaceBitSet MR::GraphEdgeBitSet MR::GraphVertBitSet MR::NodeBitSet MR::ObjBitSet MR::PixelBitSet MR::RegionBitSet MR::TextureBitSet MR::TypedBitSet<MR::Id<MR::ICPElemtTag>> MR::TypedBitSet<MR::Id<MR::SurfaceDistanceStartTag>> MR::UndirectedEdgeBitSet MR::VertBitSet MR::VoxelBitSet

Generated from class MR::BitSet. Heap-allocated instances are held in Owned<BitSet>.

Member Function Documentation

◆ all()

auto meshlib::BitSet::all ( ) const -> bool

returns true if all bits in this container are set Generated from method MR::BitSet::all.

Calls MR_BitSet_all().

◆ any()

auto meshlib::BitSet::any ( ) const -> bool

returns true if at least one bits in this container is set Generated from method MR::BitSet::any.

Calls MR_BitSet_any().

◆ assign_from_another()

auto meshlib::BitSet::assign_from_another ( _other:&meshlib::BitSet ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::operator=.

Calls MR_BitSet_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ atomic_test_set()

auto meshlib::BitSet::atomic_test_set ( n:usize ) -> bool

sets n-th bit and returns its previous value; it is safe to call simultaneously from several threads for any bits of the same bitset, provided no other modification of the bitset (including resizing) is performed in parallel Generated from method MR::BitSet::atomicTestSet.

Calls MR_BitSet_atomicTestSet().

◆ auto_resize_set()

void meshlib::BitSet::auto_resize_set ( pos:usize ,
val:Option< bool >  )

Generated from method MR::BitSet::autoResizeSet.

Calls MR_BitSet_autoResizeSet().

◆ auto_resize_set_range()

void meshlib::BitSet::auto_resize_set_range ( pos:usize ,
len:usize ,
val:Option< bool >  )

sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements Generated from method MR::BitSet::autoResizeSet.

Calls MR_BitSet_autoResizeSet_range().

◆ auto_resize_test_set()

auto meshlib::BitSet::auto_resize_test_set ( pos:usize ,
val:Option< bool >  ) -> bool

same as autoResizeSet and returns previous value of pos-bit Generated from method MR::BitSet::autoResizeTestSet.

Calls MR_BitSet_autoResizeTestSet().

◆ back_id()

auto meshlib::BitSet::back_id ( ) const -> usize

returns the identifier of the back() element Generated from method MR::BitSet::backId.

Calls MR_BitSet_backId().

◆ begin_id()

auto meshlib::BitSet::begin_id ( ) -> usize
static

[beginId(), endId()) is the range of all bits in the set Generated from method MR::BitSet::beginId.

Calls MR_BitSet_beginId().

◆ bitand_assign()

auto meshlib::BitSet::bitand_assign ( b:&meshlib::BitSet ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::operator&=.

Calls MR_BitSet_bitand_assign(). The reference to this object might be preserved in the return value.

◆ bitor_assign()

auto meshlib::BitSet::bitor_assign ( b:&meshlib::BitSet ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::operator|=.

Calls MR_BitSet_bitor_assign(). The reference to this object might be preserved in the return value.

◆ bits()

auto meshlib::BitSet::bits ( ) const -> &meshlib::std_vector_uint64_t_MR_Allocator_uint64_t

read-only access to all bits stored as a vector of uint64 blocks Generated from method MR::BitSet::bits.

Calls MR_BitSet_bits().

◆ bits_per_block()

auto meshlib::BitSet::bits_per_block ( ) -> *const usize
static

Returns a pointer to a member variable of class MR::BitSet named bits_per_block.

Calls MR_BitSet_Get_bits_per_block().

◆ capacity()

auto meshlib::BitSet::capacity ( ) const -> usize

Generated from method MR::BitSet::capacity.

Calls MR_BitSet_capacity().

◆ clear()

void meshlib::BitSet::clear ( )

Generated from method MR::BitSet::clear.

Calls MR_BitSet_clear().

◆ construct()

auto meshlib::BitSet::construct ( numBits:usize ,
fillValue:Option< bool >  ) -> meshlib::Owned< meshlib::BitSet >
static

creates bitset of given size filled with given value Generated from constructor MR::BitSet::BitSet.

Calls MR_BitSet_Construct(). The reference to the parameter numBits might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::BitSet::construct_from_another ( _other:&meshlib::BitSet ) -> meshlib::Owned< meshlib::BitSet >
static

Generated from constructor MR::BitSet::BitSet.

Calls MR_BitSet_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ count()

auto meshlib::BitSet::count ( ) const -> usize

computes the number of set bits in the whole set Generated from method MR::BitSet::count.

Calls MR_BitSet_count().

◆ count_bits_and_blocks()

auto meshlib::BitSet::count_bits_and_blocks ( maxBits:Option< usize > ) const -> meshlib::Owned< meshlib::BitSet_Counts >

computes the numbers of set bits and of non-empty blocks, stopping as soon as the set bits exceed maxBits; both numbers are then partial, which makes a size test of a large set cheap Generated from method MR::BitSet::countBitsAndBlocks.

Calls MR_BitSet_countBitsAndBlocks().

◆ empty()

auto meshlib::BitSet::empty ( ) const -> bool

Generated from method MR::BitSet::empty.

Calls MR_BitSet_empty().

◆ end_id()

auto meshlib::BitSet::end_id ( ) const -> usize

Generated from method MR::BitSet::endId.

Calls MR_BitSet_endId().

◆ find_first()

auto meshlib::BitSet::find_first ( ) const -> usize

return the smallest index i such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_first.

Calls MR_BitSet_find_first().

◆ find_first_not_set()

auto meshlib::BitSet::find_first_not_set ( ) const -> usize

return the smallest index i such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_first_not_set.

Calls MR_BitSet_find_first_not_set().

◆ find_last()

auto meshlib::BitSet::find_last ( ) const -> usize

return the highest index i such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_last.

Calls MR_BitSet_find_last().

◆ find_last_not_set()

auto meshlib::BitSet::find_last_not_set ( ) const -> usize

return the highest index i such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_last_not_set.

Calls MR_BitSet_find_last_not_set().

◆ find_next()

auto meshlib::BitSet::find_next ( n:usize ) const -> usize

return the smallest index i>n such that bit i is set, or npos if *this has no on bits. Generated from method MR::BitSet::find_next.

Calls MR_BitSet_find_next().

◆ find_next_not_set()

auto meshlib::BitSet::find_next_not_set ( n:usize ) const -> usize

return the smallest index i>n such that bit i is NOT set, or npos if *this has no off bits. Generated from method MR::BitSet::find_next_not_set.

Calls MR_BitSet_find_next_not_set().

◆ flip_0()

auto meshlib::BitSet::flip_0 ( ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::flip.

Calls MR_BitSet_flip_0().

◆ flip_1()

auto meshlib::BitSet::flip_1 ( n:usize ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::flip.

Calls MR_BitSet_flip_1().

◆ flip_2()

auto meshlib::BitSet::flip_2 ( n:usize ,
len:usize  ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::flip.

Calls MR_BitSet_flip_2().

◆ from_blocks()

auto meshlib::BitSet::from_blocks ( blocks:&mut meshlib::std_vector_uint64_t_MR_Allocator_uint64_t ) -> meshlib::Owned< meshlib::BitSet >
static

creates bitset from the given blocks of bits Generated from method MR::BitSet::fromBlocks.

Calls MR_BitSet_fromBlocks().

◆ heap_bytes()

auto meshlib::BitSet::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::BitSet::heapBytes.

Calls MR_BitSet_heapBytes().

◆ intersects()

auto meshlib::BitSet::intersects ( a:&meshlib::BitSet ) const -> bool

returns true if, there is a bit which is set in this bitset, such that the corresponding bit in bitset a is also set. Otherwise this function returns false. Generated from method MR::BitSet::intersects.

Calls MR_BitSet_intersects().

◆ is_subset_of()

auto meshlib::BitSet::is_subset_of ( a:&meshlib::BitSet ) const -> bool

returns true if, for every bit that is set in this bitset, the corresponding bit in bitset a is also set. Otherwise this function returns false. Generated from method MR::BitSet::is_subset_of.

Calls MR_BitSet_is_subset_of().

◆ new()

auto meshlib::BitSet::new ( ) -> meshlib::Owned< meshlib::BitSet >
static

creates empty bitset

Calls MR_BitSet_DefaultConstruct().

◆ none()

auto meshlib::BitSet::none ( ) const -> bool

returns true if all bits in this container are reset Generated from method MR::BitSet::none.

Calls MR_BitSet_none().

◆ npos()

auto meshlib::BitSet::npos ( ) -> *const usize
static

Returns a pointer to a member variable of class MR::BitSet named npos.

Calls MR_BitSet_Get_npos().

◆ nth_set_bit()

auto meshlib::BitSet::nth_set_bit ( n:usize ) const -> usize

returns the location of nth set bit (where the first bit corresponds to n=0) or npos if there are less bit set Generated from method MR::BitSet::nthSetBit.

Calls MR_BitSet_nthSetBit().

◆ num_blocks()

auto meshlib::BitSet::num_blocks ( ) const -> usize

Generated from method MR::BitSet::num_blocks.

Calls MR_BitSet_num_blocks().

◆ pop_back()

void meshlib::BitSet::pop_back ( )

removes last bit from the container, decreasing its size on 1 Generated from method MR::BitSet::pop_back.

Calls MR_BitSet_pop_back().

◆ push_back()

void meshlib::BitSet::push_back ( val:bool )

adds one more bit with the given value in the container, increasing its size on 1 Generated from method MR::BitSet::push_back.

Calls MR_BitSet_push_back().

◆ reserve()

void meshlib::BitSet::reserve ( numBits:usize )

Generated from method MR::BitSet::reserve.

Calls MR_BitSet_reserve().

◆ reset_0()

auto meshlib::BitSet::reset_0 ( ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::reset.

Calls MR_BitSet_reset_0().

◆ reset_1()

auto meshlib::BitSet::reset_1 ( n:usize ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::reset.

Calls MR_BitSet_reset_1().

◆ reset_2()

auto meshlib::BitSet::reset_2 ( n:usize ,
len:usize  ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::reset.

Calls MR_BitSet_reset_2().

◆ resize()

void meshlib::BitSet::resize ( numBits:usize ,
fillValue:Option< bool >  )

Generated from method MR::BitSet::resize.

Calls MR_BitSet_resize().

◆ resize_with_reserve()

void meshlib::BitSet::resize_with_reserve ( newSize:usize )

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::BitSet::resizeWithReserve.

Calls MR_BitSet_resizeWithReserve().

Deprecated
use resize() instead

◆ reverse()

void meshlib::BitSet::reverse ( )

changes the order of bits on the opposite Generated from method MR::BitSet::reverse.

Calls MR_BitSet_reverse().

◆ set()

auto meshlib::BitSet::set ( n:usize ,
val:bool  ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::set.

Calls MR_BitSet_set().

◆ set_all()

auto meshlib::BitSet::set_all ( ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::set.

Calls MR_BitSet_set_all().

◆ set_bit()

auto meshlib::BitSet::set_bit ( n:usize ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::set.

Calls MR_BitSet_set_bit().

◆ set_range()

auto meshlib::BitSet::set_range ( n:usize ,
len:usize ,
val:bool  ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::set.

Calls MR_BitSet_set_range().

◆ shrink_to_fit()

void meshlib::BitSet::shrink_to_fit ( )

Generated from method MR::BitSet::shrink_to_fit.

Calls MR_BitSet_shrink_to_fit().

◆ size()

auto meshlib::BitSet::size ( ) const -> usize

Generated from method MR::BitSet::size.

Calls MR_BitSet_size().

◆ sub_assign()

auto meshlib::BitSet::sub_assign ( b:&meshlib::BitSet ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::operator-=.

Calls MR_BitSet_sub_assign(). The reference to this object might be preserved in the return value.

◆ subtract()

auto meshlib::BitSet::subtract ( b:&meshlib::BitSet ,
bShiftInBlocks:core::ffi::c_int  ) -> &mut meshlib::BitSet

subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block Generated from method MR::BitSet::subtract.

Calls MR_BitSet_subtract().

◆ test()

auto meshlib::BitSet::test ( n:usize ) const -> bool

all bits after size() we silently consider as not-set Generated from method MR::BitSet::test.

Calls MR_BitSet_test().

◆ test_set()

auto meshlib::BitSet::test_set ( n:usize ,
val:Option< bool >  ) -> bool

Generated from method MR::BitSet::test_set.

Calls MR_BitSet_test_set().

◆ unchecked_test()

auto meshlib::BitSet::unchecked_test ( n:usize ) const -> bool

Generated from method MR::BitSet::uncheckedTest.

Calls MR_BitSet_uncheckedTest().

◆ unchecked_test_set()

auto meshlib::BitSet::unchecked_test_set ( n:usize ,
val:Option< bool >  ) -> bool

Generated from method MR::BitSet::uncheckedTestSet.

Calls MR_BitSet_uncheckedTestSet().

◆ xor_assign()

auto meshlib::BitSet::xor_assign ( b:&meshlib::BitSet ) -> &mut meshlib::BitSet

Generated from method MR::BitSet::operator^=.

Calls MR_BitSet_xor_assign(). The reference to this object might be preserved in the return value.


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