-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shared FilterState: List support (#4588)
This is an attempt to solve #4528 I tried adding a setList and getList or other variants to the filter state interface as @curiouserrandy suggested in the issue above. Two problems came up: 1. hasData method becomes complicated. It effectively becomes "check if all elements of the list have same type" 2. getListData also becomes kludgey. Obtain the vector, dynamic cast each element to check if typematches and then return a vector of references. Not sure if its worth the perf overhead to do this over and over again. Instead, I opted here to return a non-const reference to the underlying object (which is not const either). Short of me doing my own const cast.. Signed-off-by: Shriram Rajagopalan <[email protected]>
- Loading branch information
Showing
5 changed files
with
212 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters