KiCad PCB EDA Suite
Loading...
Searching...
No Matches
REFDES_TRACKER::PREFIX_DATA Struct Reference

Data structure for tracking used numbers and caching next available values. More...

Public Member Functions

 PREFIX_DATA ()
 

Public Attributes

std::set< int > m_usedNumbers
 Sorted set of used numbers for this prefix.
 
std::map< int, int > m_nextCache
 Cache of next available number for given min values.
 
int m_baseNext
 Next available from 1 (cached)
 
bool m_cacheValid
 True if m_baseNext cache is valid.
 

Detailed Description

Data structure for tracking used numbers and caching next available values.

Definition at line 164 of file refdes_tracker.h.

Constructor & Destructor Documentation

◆ PREFIX_DATA()

REFDES_TRACKER::PREFIX_DATA::PREFIX_DATA ( )
inline

Definition at line 171 of file refdes_tracker.h.

Member Data Documentation

◆ m_baseNext

int REFDES_TRACKER::PREFIX_DATA::m_baseNext
mutable

Next available from 1 (cached)

Definition at line 168 of file refdes_tracker.h.

Referenced by REFDES_TRACKER::findNextAvailable(), REFDES_TRACKER::updateBaseNext(), and REFDES_TRACKER::updateCacheOnInsert().

◆ m_cacheValid

bool REFDES_TRACKER::PREFIX_DATA::m_cacheValid
mutable

True if m_baseNext cache is valid.

Definition at line 169 of file refdes_tracker.h.

Referenced by REFDES_TRACKER::updateBaseNext(), and REFDES_TRACKER::updateCacheOnInsert().

◆ m_nextCache

std::map<int, int> REFDES_TRACKER::PREFIX_DATA::m_nextCache
mutable

Cache of next available number for given min values.

Definition at line 167 of file refdes_tracker.h.

Referenced by REFDES_TRACKER::findNextAvailable(), and REFDES_TRACKER::updateCacheOnInsert().

◆ m_usedNumbers

std::set<int> REFDES_TRACKER::PREFIX_DATA::m_usedNumbers

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