KiCad PCB EDA Suite
Loading...
Searching...
No Matches
refdes_tracker.h File Reference
#include <unordered_map>
#include <unordered_set>
#include <string>
#include <mutex>
#include <set>
#include <sstream>
#include <map>
#include <vector>
#include <functional>
#include <algorithm>

Go to the source code of this file.

Classes

class  REFDES_TRACKER
 Class to efficiently track reference designators and provide next available designators. More...
 
struct  REFDES_TRACKER::PREFIX_DATA
 Data structure for tracking used numbers and caching next available values. More...
 

Typedefs

template<typename T >
using UNITS_CHECKER_FUNC = std::function< bool(const T &aTestRef, const std::vector< T > &aExistingRefs, const std::vector< int > &aRequiredUnits)>
 Function type for external units availability checking.
 

Typedef Documentation

◆ UNITS_CHECKER_FUNC

template<typename T >
using UNITS_CHECKER_FUNC = std::function<bool(const T& aTestRef, const std::vector<T>& aExistingRefs, const std::vector<int>& aRequiredUnits)>

Function type for external units availability checking.

This allows the REFDES_TRACKER to work with mock objects or custom logic without requiring actual SCH_REFERENCE dependencies.

Parameters
aTestRefReference object being tested for compatibility
aExistingRefsVector of existing references for the same reference number
aRequiredUnitsVector of unit numbers needed
Returns
true if all required units are available (no conflicts)

Definition at line 48 of file refdes_tracker.h.