forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate out
AttributePathExpandIterator::Position
(project-chip#36980
) * Copied over the new AttributePathExpandIterator and will incrementally use it (so I can validate tests) * Rename AttributePathExpandIterator to legacy * Prepare for using new style iterators ... checking NOT YET enabled though * Enabled checks ... and unit tests fail, but this now can be debugged * Fix some of the underlying bugs: read handling logic assumes we are ok to undo * Unit tests pass now * Restyle * Use new iterator in IME * Update logic to use the new iterator on testRead * more updates * Restyle * Remove the legacy attribute path expand iterator * Update naming * Restyle * Remove extra argument for ReadHandler constructor * Restyle * Slight flash improvement * Fix up includes * Removed empty line * added comment on why state is a friend class * Comment updates * Restyle, add some comments and add extra checks on validity check only for expansion. This saves a tiny amount of flash (32 bytes) * Remove an include * Comment updates, renamed mLastOutputPath to mOutputPath * Fix one typo * Re-arrange members of ReadHandler to optimize for memory layout. This saves 8 bytes for struct. We still have a 20-byte padding which I am unsure how to get rid of * Restyle * Rename State to Position * One more rename * Remove redundant assigment ...we are at a net 0 txt increase now on qpg * Add more unit tests for non-obvious requirement that wildcard expansion checks path validity, however non-wildcard does not check it * Update src/app/AttributePathExpandIterator.cpp Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Update src/app/AttributePathExpandIterator.h Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Update src/app/AttributePathExpandIterator.h Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Update src/app/AttributePathExpandIterator.h Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Update src/app/ReadHandler.h Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Update src/app/ReadHandler.cpp Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Update src/app/AttributePathExpandIterator.h Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> * Use different values for the cluster ids for testing * One more state to position change * mExpanded is now set during output path returning. Removed 2 more sets to save another tinier amount of .text * Remove some tests that seem redundant, keep only one * Update src/app/AttributePathExpandIterator.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/AttributePathExpandIterator.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/AttributePathExpandIterator.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/AttributePathExpandIterator.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/InteractionModelEngine.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/ReadHandler.h Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/AttributePathExpandIterator.h Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/ReadHandler.h Co-authored-by: Boris Zbarsky <[email protected]> * Use mCompletePosition * Another rename * Undo submodule update * Restyle * Update comment text to not sound like graph parsing * Rename method to be more descriptive * Update peek attribute iterator to rollback and update code logic a bit. Hoping for cleaner code --------- Co-authored-by: Andrei Litvin <[email protected]> Co-authored-by: Tennessee Carmel-Veilleux <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
1 parent
87f7c4c
commit a96f6ca
Showing
13 changed files
with
504 additions
and
317 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
Oops, something went wrong.