KiCad PCB EDA Suite
selection_conditions.cpp File Reference
#include <tool/selection.h>
#include <tool/selection_conditions.h>
#include <functional>

Go to the source code of this file.

Functions

SELECTION_CONDITION operator|| (const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB)
 
SELECTION_CONDITION operator&& (const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB)
 

Function Documentation

SELECTION_CONDITION operator&& ( const SELECTION_CONDITION aConditionA,
const SELECTION_CONDITION aConditionB 
)

Definition at line 188 of file selection_conditions.cpp.

References SELECTION_CONDITIONS::andFunc().

190 {
191  return std::bind( &SELECTION_CONDITIONS::andFunc, aConditionA, aConditionB, _1 );
192 }
static bool andFunc(const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB, const SELECTION &aSelection)
Helper function used by operator&&
SELECTION_CONDITION operator|| ( const SELECTION_CONDITION aConditionA,
const SELECTION_CONDITION aConditionB 
)

Definition at line 181 of file selection_conditions.cpp.

References SELECTION_CONDITIONS::orFunc().

183 {
184  return std::bind( &SELECTION_CONDITIONS::orFunc, aConditionA, aConditionB, _1 );
185 }
static bool orFunc(const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB, const SELECTION &aSelection)
Helper function used by operator||