![]() |
KiCad PCB EDA Suite
|
A list of TOOL_EVENTs, with overloaded || operators allowing for concatenating TOOL_EVENTs with little code. More...
#include <tool_event.h>
Public Types | |
typedef TOOL_EVENT | value_type |
typedef std::deque< TOOL_EVENT >::iterator | iterator |
typedef std::deque< TOOL_EVENT >::const_iterator | const_iterator |
Default constructor. Creates an empty list. More... | |
Public Member Functions | |
TOOL_EVENT_LIST () | |
Constructor for a list containing only one TOOL_EVENT. More... | |
TOOL_EVENT_LIST (const TOOL_EVENT &aSingleEvent) | |
y Copy an existing TOOL_EVENT_LIST More... | |
TOOL_EVENT_LIST (const TOOL_EVENT_LIST &aEventList)=default | |
const std::string | Format () const |
Function Format() Returns information about event in form of a human-readable string. More... | |
OPT< const TOOL_EVENT & > | Matches (const TOOL_EVENT &aEvent) const |
void | Add (const TOOL_EVENT &aEvent) |
Add a tool event to the list. More... | |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | cend () const |
int | size () const |
void | clear () |
TOOL_EVENT_LIST & | operator= (const TOOL_EVENT_LIST &aEventList) |
TOOL_EVENT_LIST & | operator= (const TOOL_EVENT &aEvent) |
TOOL_EVENT_LIST & | operator|| (const TOOL_EVENT &aEvent) |
TOOL_EVENT_LIST & | operator|| (const TOOL_EVENT_LIST &aEvent) |
Private Attributes | |
std::deque< TOOL_EVENT > | m_events |
A list of TOOL_EVENTs, with overloaded || operators allowing for concatenating TOOL_EVENTs with little code.
Definition at line 575 of file tool_event.h.
typedef std::deque<TOOL_EVENT>::const_iterator TOOL_EVENT_LIST::const_iterator |
Default constructor. Creates an empty list.
Definition at line 580 of file tool_event.h.
typedef std::deque<TOOL_EVENT>::iterator TOOL_EVENT_LIST::iterator |
Definition at line 579 of file tool_event.h.
Definition at line 578 of file tool_event.h.
|
inline |
Constructor for a list containing only one TOOL_EVENT.
Definition at line 583 of file tool_event.h.
|
inline |
y Copy an existing TOOL_EVENT_LIST
Definition at line 587 of file tool_event.h.
References m_events.
|
default |
|
inline |
Add a tool event to the list.
aEvent | is the tool event to be added. |
Definition at line 619 of file tool_event.h.
References m_events.
Referenced by operator||(), and operator||().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 649 of file tool_event.h.
References m_events.
Referenced by TOOL_MANAGER::dispatchInternal().
|
inline |
const std::string TOOL_EVENT_LIST::Format | ( | ) | const |
Function Format() Returns information about event in form of a human-readable string.
Definition at line 170 of file tool_event.cpp.
References m_events.
|
inline |
Definition at line 603 of file tool_event.h.
References m_events.
Referenced by TOOL_MANAGER::dispatchInternal().
|
inline |
|
inline |
|
inline |
Definition at line 671 of file tool_event.h.
References Add().
|
inline |
|
inline |
|
private |
Definition at line 684 of file tool_event.h.
Referenced by Add(), begin(), cbegin(), cend(), clear(), end(), Format(), Matches(), operator=(), operator||(), size(), and TOOL_EVENT_LIST().