MeshLib
 
Loading...
Searching...
No Matches
MRMeshC/MRBitSet.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
6
8MRMESHC_API const uint64_t* mrBitSetBlocks( const MRBitSet* bs );
9
12
14MRMESHC_API size_t mrBitSetSize( const MRBitSet* bs );
15
18
20MRMESHC_API bool mrBitSetEq( const MRBitSet* a, const MRBitSet* b );
21
24
27
30
33
MRMESHC_API size_t mrBitSetSize(const MRBitSet *bs)
gets total length of a bitset
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 size_t mrBitSetBlocksNum(const MRBitSet *bs)
gets count of the underlying blocks of a bitset
MRMESHC_API size_t mrBitSetCount(const MRBitSet *bs)
returns the number of bits in this bitset that are set
MRMESHC_API void mrFaceBitSetFree(MRFaceBitSet *fbs)
deallocates a FaceBitSet object
MRMESHC_API MRFaceBitSet * mrFaceBitSetNew(void)
creates a new FaceBitSet object
MRMESHC_API void mrBitSetFree(MRBitSet *bs)
deallocates a BitSet object
MRMESHC_API MRFaceBitSet * mrFaceBitSetCopy(const MRFaceBitSet *fbs)
creates a copy of a FaceBitSet object
MR_EXTERN_C_BEGIN MRMESHC_API const uint64_t * mrBitSetBlocks(const MRBitSet *bs)
gets read-only access to the underlying blocks of a bitset
#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
MRBitSet MRFaceBitSet
Definition MRMeshC/MRMeshFwd.h:36
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
struct MRBitSet MRBitSet
Definition MRMeshC/MRMeshFwd.h:34