KiCad PCB EDA Suite
Loading...
Searching...
No Matches
text_var_dependency.cpp File Reference
#include <text_var_dependency.h>
#include <functional>
#include <utility>

Go to the source code of this file.

Functions

std::vector< TEXT_VAR_REF_KEYFilterTrackable (const std::vector< TEXT_VAR_REF_KEY > &aRefs)
 Filter aRefs down to the subset that should be registered in the index (drops OP and any future non-trackable kinds).
 

Function Documentation

◆ FilterTrackable()

std::vector< TEXT_VAR_REF_KEY > FilterTrackable ( const std::vector< TEXT_VAR_REF_KEY > & aRefs)

Filter aRefs down to the subset that should be registered in the index (drops OP and any future non-trackable kinds).

Shared helper so per-module adapters don't each re-implement the filter.

Definition at line 122 of file text_var_dependency.cpp.

Referenced by SCHEMATIC_TEXT_VAR_ADAPTER::handleItemChanged(), BOARD_TEXT_VAR_ADAPTER::OnBoardItemChanged(), BOARD_TEXT_VAR_ADAPTER::registerItem(), and SCHEMATIC_TEXT_VAR_ADAPTER::registerItem().