1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 18:35:09 +00:00
serenity/Applications/Spreadsheet
Lenny Maiorani f99d1d3bd7 Vector: Implement find, find_if, find_first_matching in terms of AK::find*
Problem:
- The implementation of `find` is coupled to the implementation of `Vector`.
- `Vector::find` takes the predicate by value which might be expensive.

Solution:
- Decouple the implementation of `find` from `Vector` by using a
  generic `find` algorithm.
- Change the name of `find` with a predicate to `find_if` so that a
  binding reference can be used and the predicate can be forwarded to
  avoid copies.
- Change all the `find(pred)` call sites to use `find_if`.
2021-01-11 19:45:05 +01:00
..
CellType Spreadsheet: Override visit_edges() and visit stored JS objects 2020-12-22 23:35:29 +01:00
Readers Vector: Implement find, find_if, find_first_matching in terms of AK::find* 2021-01-11 19:45:05 +01:00
Writers Spreadsheet: Add a CSV reader and writer 2020-11-24 21:38:13 +01:00
Cell.cpp Vector: Implement find, find_if, find_first_matching in terms of AK::find* 2021-01-11 19:45:05 +01:00
Cell.h Spreadsheet: Improve sheet update efficiency 2020-12-22 23:35:29 +01:00
CellSyntaxHighlighter.cpp LibGfx: Add Gfx::TextAttributes (and use it in GUI::TextDocumentSpan) 2021-01-02 20:57:43 +01:00
CellSyntaxHighlighter.h Spreadsheet: Highlight the source causing an exception in red 2020-12-29 00:58:43 +01:00
CellTypeDialog.cpp Spreadsheet: Tidy up cell formatting dialog a bit 2021-01-04 18:42:50 +01:00
CellTypeDialog.h Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
CMakeLists.txt Build: Embed application icons directly in the executables. 2020-12-21 00:12:59 +01:00
CondFormatting.gml Spreadsheet: Tidy up cell formatting dialog a bit 2021-01-04 18:42:50 +01:00
ConditionalFormatting.h Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
CondView.gml Spreadsheet: Simplify conditional formatting property tab GML 2021-01-04 18:33:03 +01:00
Forward.h Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
HelpWindow.cpp Spreadsheet: Tweak documentation window layout slightly 2021-01-04 18:47:29 +01:00
HelpWindow.h Spreadsheet: Drop all references to example windows when closing them 2021-01-02 17:15:46 +01:00
JSIntegration.cpp LibJS: Use RTTI for inheritance checks 2021-01-01 17:00:20 +01:00
JSIntegration.h Spreadsheet: Show a small inline doc window for the "current" function 2020-12-29 00:58:43 +01:00
main.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
Position.h Spreadsheet: Serialise Positions to URLs and add Sheet::from_uri() 2020-11-03 16:47:56 +01:00
Spreadsheet.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
Spreadsheet.h Spreadsheet: Show a small inline doc window for the "current" function 2020-12-29 00:58:43 +01:00
SpreadsheetModel.cpp LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI 2021-01-01 17:46:39 +01:00
SpreadsheetModel.h Spreadsheet: Improve sheet update efficiency 2020-12-22 23:35:29 +01:00
SpreadsheetView.cpp Spreadsheet: Improve sheet update efficiency 2020-12-22 23:35:29 +01:00
SpreadsheetView.h AK+LibGUI+LibWeb: Remove AK::TypeTraits in favor of RTTI-based helpers 2021-01-01 15:33:30 +01:00
SpreadsheetWidget.cpp Spreadsheet: Drop all references to example windows when closing them 2021-01-02 17:15:46 +01:00
SpreadsheetWidget.h Spreadsheet: Show a small inline doc window for the "current" function 2020-12-29 00:58:43 +01:00
Workbook.cpp Spreadsheet: Prompt user before closing with unsaved changes 2020-12-23 15:41:49 +01:00
Workbook.h Spreadsheet: Prompt user before closing with unsaved changes 2020-12-23 15:41:49 +01:00