Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
ImBitArray< BITCOUNT > Struct Template Reference

#include <src/imgui/imgui_internal.h>

Public Member Functions

 ImBitArray ()
 
void ClearAllBits ()
 
void SetAllBits ()
 
bool TestBit (int n) const
 
void SetBit (int n)
 
void ClearBit (int n)
 
void SetBitRange (int n, int n2)
 

Public Attributes

ImU32 Storage [(BITCOUNT+31) > > 5]
 

Detailed Description

template<int BITCOUNT>
struct ImBitArray< BITCOUNT >

Constructor & Destructor Documentation

◆ ImBitArray()

template<int BITCOUNT>
ImBitArray< BITCOUNT >::ImBitArray ( )
inline
530{ ClearAllBits(); }
void ClearAllBits()
Definition imgui_internal.h:531

Member Function Documentation

◆ ClearAllBits()

template<int BITCOUNT>
void ImBitArray< BITCOUNT >::ClearAllBits ( )
inline
531{ memset(Storage, 0, sizeof(Storage)); }
ImU32 Storage[(BITCOUNT+31) > > 5]
Definition imgui_internal.h:529

◆ ClearBit()

template<int BITCOUNT>
void ImBitArray< BITCOUNT >::ClearBit ( int  n)
inline
535{ IM_ASSERT(n < BITCOUNT); ImBitArrayClearBit(Storage, n); }
#define IM_ASSERT(_EXPR)
Definition imgui.h:81
void ImBitArrayClearBit(ImU32 *arr, int n)
Definition imgui_internal.h:509

References IM_ASSERT, and ImBitArrayClearBit().

Referenced by ImGui::TableMergeDrawChannels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetAllBits()

template<int BITCOUNT>
void ImBitArray< BITCOUNT >::SetAllBits ( )
inline
532{ memset(Storage, 255, sizeof(Storage)); }

◆ SetBit()

template<int BITCOUNT>
void ImBitArray< BITCOUNT >::SetBit ( int  n)
inline
534{ IM_ASSERT(n < BITCOUNT); ImBitArraySetBit(Storage, n); }
void ImBitArraySetBit(ImU32 *arr, int n)
Definition imgui_internal.h:510

References IM_ASSERT, and ImBitArraySetBit().

+ Here is the call graph for this function:

◆ SetBitRange()

template<int BITCOUNT>
void ImBitArray< BITCOUNT >::SetBitRange ( int  n,
int  n2 
)
inline
536{ ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2)
void ImBitArraySetBitRange(ImU32 *arr, int n, int n2)
Definition imgui_internal.h:511

References ImBitArraySetBitRange().

Referenced by ImGui::TableMergeDrawChannels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TestBit()

template<int BITCOUNT>
bool ImBitArray< BITCOUNT >::TestBit ( int  n) const
inline
533{ IM_ASSERT(n < BITCOUNT); return ImBitArrayTestBit(Storage, n); }
IM_MSVC_RUNTIME_CHECKS_RESTORE bool ImBitArrayTestBit(const ImU32 *arr, int n)
Definition imgui_internal.h:508

References IM_ASSERT, and ImBitArrayTestBit().

Referenced by ImGui::TableMergeDrawChannels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Storage

template<int BITCOUNT>
ImU32 ImBitArray< BITCOUNT >::Storage[(BITCOUNT+31) > > 5]

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