SelectBlockArray Class Reference

#include <private_ge_mtools.h>

Classes

class  SelectArrayData
 

Public Member Functions

 SelectBlockArray ()
 
 ~SelectBlockArray ()
 
Int GetMemoryUse ()
 
Int GetMaxCount ()
 
Int32 GetCount () const
 
Int32 GetSegments () const
 
Bool Select (Int32 num)
 
Bool SelectAll (Int32 min, Int32 max)
 
Bool Deselect (Int32 num)
 
void DeselectAll ()
 
Bool Toggle (Int32 num)
 
Bool ToggleAll (Int32 min, Int32 max)
 
Bool GetFirstSelected (Int32 *a)
 
Bool GetBlockRange (Int32 &seg, Int32 *va, Int32 *vb)
 
Bool GetRange (Int32 seg, Int32 *a, Int32 *b)
 
Bool IsSelected (Int32 num)
 
Int32 GetSegment (Int32 b, Int32 i, Int32 *l, Int32 *u) const
 
Bool FindSegment (Int32 num)
 
Bool FindBlockSegment (Int32 num, Int32 &b, Int32 &i) const
 
Bool FindSegment (Int32 num, Int32 *segment)
 
Bool CopyTo (SelectBlockArray *dst)
 
Bool CopyTo (BaseSelect *bs)
 
Bool CopyFrom (BaseSelect *bs)
 

Private Member Functions

Int32 FindNum (Int32 num)
 
Int32 FindBlockNum (Int32 num, Int32 &b, Int32 &i)
 

Private Attributes

SortedBlockArray< SelectArrayData, 32, 512 > m_Data
 
Int32 m_SelectCount
 
Int32 m_LastBlockSegment
 

Constructor & Destructor Documentation

◆ SelectBlockArray()

◆ ~SelectBlockArray()

Member Function Documentation

◆ FindNum()

Int32 FindNum ( Int32  num)
private

◆ FindBlockNum()

Int32 FindBlockNum ( Int32  num,
Int32 b,
Int32 i 
)
private

◆ GetMemoryUse()

Int GetMemoryUse ( )

◆ GetMaxCount()

Int GetMaxCount ( )

◆ GetCount()

Int32 GetCount ( ) const

◆ GetSegments()

Int32 GetSegments ( ) const

◆ Select()

Bool Select ( Int32  num)

◆ SelectAll()

Bool SelectAll ( Int32  min,
Int32  max 
)

◆ Deselect()

Bool Deselect ( Int32  num)

◆ DeselectAll()

void DeselectAll ( )

◆ Toggle()

Bool Toggle ( Int32  num)

◆ ToggleAll()

Bool ToggleAll ( Int32  min,
Int32  max 
)

◆ GetFirstSelected()

Bool GetFirstSelected ( Int32 a)

◆ GetBlockRange()

Bool GetBlockRange ( Int32 seg,
Int32 va,
Int32 vb 
)

◆ GetRange()

Bool GetRange ( Int32  seg,
Int32 a,
Int32 b 
)

◆ IsSelected()

Bool IsSelected ( Int32  num)

◆ GetSegment()

Int32 GetSegment ( Int32  b,
Int32  i,
Int32 l,
Int32 u 
) const

◆ FindSegment() [1/2]

Bool FindSegment ( Int32  num)

◆ FindBlockSegment()

Bool FindBlockSegment ( Int32  num,
Int32 b,
Int32 i 
) const

◆ FindSegment() [2/2]

Bool FindSegment ( Int32  num,
Int32 segment 
)

◆ CopyTo() [1/2]

Bool CopyTo ( SelectBlockArray dst)

◆ CopyTo() [2/2]

Bool CopyTo ( BaseSelect bs)

◆ CopyFrom()

Bool CopyFrom ( BaseSelect bs)

Member Data Documentation

◆ m_Data

SortedBlockArray<SelectArrayData, 32 , 512 > m_Data
private

◆ m_SelectCount

Int32 m_SelectCount
private

◆ m_LastBlockSegment

Int32 m_LastBlockSegment
private