|
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 |
Public Member Functions | |
| TOOL_EVENT_LIST () | |
| Default constructor. Creates an empty list. | |
| TOOL_EVENT_LIST (const TOOL_EVENT &aSingleEvent) | |
| Constructor for a list containing only one TOOL_EVENT. | |
| TOOL_EVENT_LIST (const TOOL_EVENT_LIST &aEventList) | |
| Copy an existing TOOL_EVENT_LIST. | |
| const std::string | Format () const |
| Return information about event in form of a human-readable string. | |
| const std::string | Names () const |
| Return a string containing the names of all the events in this list. | |
| OPT_TOOL_EVENT | Matches (const TOOL_EVENT &aEvent) const |
| void | Add (const TOOL_EVENT &aEvent) |
| Add a tool event to the list. | |
| 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 647 of file tool_event.h.
| typedef std::deque<TOOL_EVENT>::const_iterator TOOL_EVENT_LIST::const_iterator |
Definition at line 652 of file tool_event.h.
| typedef std::deque<TOOL_EVENT>::iterator TOOL_EVENT_LIST::iterator |
Definition at line 651 of file tool_event.h.
Definition at line 650 of file tool_event.h.
|
inline |
Default constructor. Creates an empty list.
Definition at line 655 of file tool_event.h.
Referenced by operator=(), operator=(), operator||(), operator||(), and TOOL_EVENT_LIST().
|
inline |
Constructor for a list containing only one TOOL_EVENT.
Definition at line 659 of file tool_event.h.
References m_events.
|
inline |
Copy an existing TOOL_EVENT_LIST.
Definition at line 665 of file tool_event.h.
References m_events, and TOOL_EVENT_LIST().
|
inline |
Add a tool event to the list.
| aEvent | is the tool event to be added. |
Definition at line 703 of file tool_event.h.
References m_events.
Referenced by operator||(), operator||(), and operator||().
|
inline |
Definition at line 708 of file tool_event.h.
References m_events.
|
inline |
Definition at line 718 of file tool_event.h.
References m_events.
|
inline |
Definition at line 723 of file tool_event.h.
References m_events.
|
inline |
Definition at line 733 of file tool_event.h.
References m_events.
Referenced by TOOL_MANAGER::dispatchInternal(), and TOOL_MANAGER::ShutdownTool().
|
inline |
Definition at line 713 of file tool_event.h.
References m_events.
| const std::string TOOL_EVENT_LIST::Format | ( | ) | const |
Return information about event in form of a human-readable string.
Definition at line 190 of file tool_event.cpp.
References m_events.
|
inline |
Definition at line 687 of file tool_event.h.
References m_events.
Referenced by TOOL_MANAGER::dispatchInternal().
| const std::string TOOL_EVENT_LIST::Names | ( | ) | const |
Return a string containing the names of all the events in this list.
Definition at line 201 of file tool_event.cpp.
References m_events.
Referenced by SCH_TOOL_BASE< SCH_EDIT_FRAME >::SetContextMenu().
|
inline |
Definition at line 748 of file tool_event.h.
References m_events, and TOOL_EVENT_LIST().
|
inline |
Definition at line 738 of file tool_event.h.
References m_events, and TOOL_EVENT_LIST().
|
inline |
Definition at line 755 of file tool_event.h.
References Add(), and TOOL_EVENT_LIST().
|
inline |
Definition at line 761 of file tool_event.h.
References m_events, and TOOL_EVENT_LIST().
|
inline |
Definition at line 728 of file tool_event.h.
References m_events.
|
private |
Definition at line 768 of file tool_event.h.
Referenced by Add(), begin(), cbegin(), cend(), clear(), end(), Format(), Matches(), Names(), operator=(), operator=(), operator||(), size(), TOOL_EVENT_LIST(), and TOOL_EVENT_LIST().