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

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. More...
 
typedef bool(&) SELECTION_BOOL(const SELECTION &)
 Signature for a reference to a function that takes a SELECTION and returns a boolean. More...
 

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 51 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 36 of file selection_conditions.h.

Function Documentation

◆ operator!()

SELECTION_CONDITION operator! ( const SELECTION_CONDITION aCondition)

Definition at line 213 of file selection_conditions.cpp.

◆ operator&&() [1/3]

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

Definition at line 210 of file selection_conditions.cpp.

◆ operator&&() [2/3]

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

Definition at line 218 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 207 of file selection_conditions.cpp.

◆ operator||() [2/3]

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

Definition at line 215 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.