MeshLib
 
Loading...
Searching...
No Matches
MRBitSet.h File Reference
#include "MRMeshFwd.h"

Go to the source code of this file.

Functions

MR_EXTERN_C_BEGIN MRMESHC_API const uint64_t * mrBitSetBlocks (const MRBitSet *bs)
 gets read-only access to the underlying blocks of a bitset
 
MRMESHC_API size_t mrBitSetBlocksNum (const MRBitSet *bs)
 gets count of the underlying blocks of a bitset
 
MRMESHC_API size_t mrBitSetSize (const MRBitSet *bs)
 gets total length of a bitset
 
MRMESHC_API size_t mrBitSetCount (const MRBitSet *bs)
 returns the number of bits in this bitset that are set
 
MRMESHC_API bool mrBitSetEq (const MRBitSet *a, const MRBitSet *b)
 checks if two bitsets are equal (have the same length and identical bit values)
 
MRMESHC_API void mrBitSetFree (MRBitSet *bs)
 deallocates a BitSet object
 
MRMESHC_API MRFaceBitSetmrFaceBitSetNew (void)
 creates a new FaceBitSet object
 
MRMESHC_API MRFaceBitSetmrFaceBitSetCopy (const MRFaceBitSet *fbs)
 creates a copy of a FaceBitSet object
 
MRMESHC_API void mrFaceBitSetFree (MRFaceBitSet *fbs)
 deallocates a FaceBitSet object
 

Function Documentation

◆ mrBitSetBlocks()

MR_EXTERN_C_BEGIN MRMESHC_API const uint64_t * mrBitSetBlocks ( const MRBitSet * bs)

gets read-only access to the underlying blocks of a bitset

◆ mrBitSetBlocksNum()

MRMESHC_API size_t mrBitSetBlocksNum ( const MRBitSet * bs)

gets count of the underlying blocks of a bitset

◆ mrBitSetCount()

MRMESHC_API size_t mrBitSetCount ( const MRBitSet * bs)

returns the number of bits in this bitset that are set

◆ mrBitSetEq()

MRMESHC_API bool mrBitSetEq ( const MRBitSet * a,
const MRBitSet * b )

checks if two bitsets are equal (have the same length and identical bit values)

◆ mrBitSetFree()

MRMESHC_API void mrBitSetFree ( MRBitSet * bs)

deallocates a BitSet object

◆ mrBitSetSize()

MRMESHC_API size_t mrBitSetSize ( const MRBitSet * bs)

gets total length of a bitset

◆ mrFaceBitSetCopy()

MRMESHC_API MRFaceBitSet * mrFaceBitSetCopy ( const MRFaceBitSet * fbs)

creates a copy of a FaceBitSet object

◆ mrFaceBitSetFree()

MRMESHC_API void mrFaceBitSetFree ( MRFaceBitSet * fbs)

deallocates a FaceBitSet object

◆ mrFaceBitSetNew()

MRMESHC_API MRFaceBitSet * mrFaceBitSetNew ( void )

creates a new FaceBitSet object