|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <DrillDownFilter.hpp>

Public Member Functions | |
| void | Apply (EventsTableView &view, const db::EventsContainer &events, const std::vector< unsigned long > &indices, const std::vector< unsigned long > &shown) |
Narrows view to indices. shown: the events the panel shows. | |
| bool | IsActive (const EventsTableView &view, const db::EventsContainer &events) const |
| const std::vector< unsigned long > & | Shown () const |
| The events the panel showed before the drill-down. | |
| void | Restore (EventsTableView &view, const db::EventsContainer &events) |
| void | Reset () |
| Forgets the drill-down (the filter was replaced by someone else). | |
Private Attributes | |
| bool | m_active {false} |
| std::uint64_t | m_generation {0} |
| std::vector< unsigned long > | m_applied |
| std::optional< std::vector< unsigned long > > | m_previous |
| std::vector< unsigned long > | m_shown |
A panel's temporary "drill down" filter (timeline bucket, trace) set on top of whatever filter the rest of the application had set.
It remembers that previous filter, so Restore() brings it back instead of clearing every filter, and the events the panel showed before, so the panel can keep showing them while its own filter is active.
|
inline |
Narrows view to indices. shown: the events the panel shows.


|
inline |
True while the view still shows the last Apply(): nobody else changed the filter since and the data set is the same.


|
inline |
Forgets the drill-down (the filter was replaced by someone else).

|
inline |
Puts back the filter that was set before Apply() (only while IsActive: a filter set by someone else since is left alone).


|
inline |
The events the panel showed before the drill-down.

|
private |
|
private |
|
private |
|
private |
|
private |