QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_SerialNumberMap::SN_BLOCK Struct Reference

Public Member Functions

size_t ActiveElementEstimate (unsigned int sn0, unsigned int sn1) const
 
struct SN_ELEMENTBinarySearchBlockHelper (unsigned int sn)
 
void CullBlockHelper ()
 
void EmptyBlock ()
 
bool IsValidBlock (ON_TextLog *textlog, struct SN_ELEMENT *const *hash_table, size_t *active_id_count) const
 
void SortBlockHelper ()
 

Static Public Member Functions

static int CompareMaxSN (const void *, const void *)
 

Public Attributes

size_t m_count
 
size_t m_purged
 
struct SN_ELEMENT m_sn [SN_BLOCK_CAPACITY]
 
unsigned int m_sn0
 
unsigned int m_sn1
 
unsigned int m_sorted
 

Member Function Documentation

◆ ActiveElementEstimate()

size_t ON_SerialNumberMap::SN_BLOCK::ActiveElementEstimate ( unsigned int sn0,
unsigned int sn1 ) const

◆ BinarySearchBlockHelper()

struct ON_SerialNumberMap::SN_ELEMENT * ON_SerialNumberMap::SN_BLOCK::BinarySearchBlockHelper ( unsigned int sn)

◆ CompareMaxSN()

int ON_SerialNumberMap::SN_BLOCK::CompareMaxSN ( const void * a,
const void * b )
static

◆ CullBlockHelper()

void ON_SerialNumberMap::SN_BLOCK::CullBlockHelper ( )

◆ EmptyBlock()

void ON_SerialNumberMap::SN_BLOCK::EmptyBlock ( )

◆ IsValidBlock()

bool ON_SerialNumberMap::SN_BLOCK::IsValidBlock ( ON_TextLog * textlog,
struct SN_ELEMENT *const * hash_table,
size_t * active_id_count ) const

◆ SortBlockHelper()

void ON_SerialNumberMap::SN_BLOCK::SortBlockHelper ( )

Member Data Documentation

◆ m_count

size_t ON_SerialNumberMap::SN_BLOCK::m_count

◆ m_purged

size_t ON_SerialNumberMap::SN_BLOCK::m_purged

◆ m_sn

struct SN_ELEMENT ON_SerialNumberMap::SN_BLOCK::m_sn[SN_BLOCK_CAPACITY]

◆ m_sn0

unsigned int ON_SerialNumberMap::SN_BLOCK::m_sn0

◆ m_sn1

unsigned int ON_SerialNumberMap::SN_BLOCK::m_sn1

◆ m_sorted

unsigned int ON_SerialNumberMap::SN_BLOCK::m_sorted

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