KiCad PCB EDA Suite
Loading...
Searching...
No Matches
selection_conditions.h File Reference
#include <functional>
#include <core/typeinfo.h>
#include <vector>

Go to the source code of this file.

Classes

class  SELECTION_CONDITIONS
 Class that groups generic conditions for selected items. More...
 

Typedefs

typedef std::function< bool(const SELECTION &)> SELECTION_CONDITION
 Functor type that checks a specific condition for selected items.
 
typedef bool(&) SELECTION_BOOL(const SELECTION &)
 Signature for a reference to a function that takes a SELECTION and returns a boolean.
 

Functions

SELECTION_CONDITION operator|| (const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB)
 
SELECTION_CONDITION operator&& (const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB)
 
SELECTION_CONDITION operator! (const SELECTION_CONDITION &aCondition)
 
SELECTION_CONDITION operator|| (const SELECTION_CONDITION &aConditionA, SELECTION_BOOL aConditionB)
 
SELECTION_CONDITION operator|| (SELECTION_BOOL aConditionA, const SELECTION_CONDITION &aConditionB)
 
SELECTION_CONDITION operator&& (const SELECTION_CONDITION &aConditionA, SELECTION_BOOL aConditionB)
 
SELECTION_CONDITION operator&& (SELECTION_BOOL aConditionA, const SELECTION_CONDITION &aConditionB)
 

Typedef Documentation

◆ SELECTION_BOOL

typedef bool(&) SELECTION_BOOL(const SELECTION &)

Signature for a reference to a function that takes a SELECTION and returns a boolean.

This type is meant to be used to define logical operations between SELECTION_CONDITION functors and non-functor SELECTION_CONDITION-like functions. It should not be used in user code.

Definition at line 52 of file selection_conditions.h.

◆ SELECTION_CONDITION

typedef std::function<bool (const SELECTION&)> SELECTION_CONDITION

Functor type that checks a specific condition for selected items.

Definition at line 37 of file selection_conditions.h.

Function Documentation

◆ operator!()

SELECTION_CONDITION operator! ( const SELECTION_CONDITION aCondition)

Definition at line 214 of file selection_conditions.cpp.

◆ operator&&() [1/3]

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

Definition at line 211 of file selection_conditions.cpp.

◆ operator&&() [2/3]

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

Definition at line 219 of file selection_conditions.cpp.

◆ operator&&() [3/3]

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

Definition at line 199 of file selection_conditions.cpp.

◆ operator||() [1/3]

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

Definition at line 208 of file selection_conditions.cpp.

◆ operator||() [2/3]

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

Definition at line 216 of file selection_conditions.cpp.

◆ operator||() [3/3]

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

Definition at line 186 of file selection_conditions.cpp.