-
Notifications
You must be signed in to change notification settings - Fork 69
find_best_packing: store orders side-by-side in a single vector #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
647a417
initial
lyorig d8c0950
remove .cache/
lyorig a9b99f1
re-constify rect reference in all_inserted
lyorig 3d3ba3b
properly resize vector every time
lyorig 2471d26
find_best_packing: put order vector on stack instead of TLS
lyorig 725b464
replace std::span with templated iterators
lyorig 6f36d22
remove unused type alias
lyorig d2185d1
fix whitespace
geneotech 354ebdd
merge changes
lyorig b9e7a86
fix whitespace
geneotech bce82f1
pointers instead of iterators + correctly set vector size
lyorig 550d3f8
remove unused typedef
lyorig 9097f0a
fix: resize before copy to ensure proper end() pointer
lyorig 23e0f6d
restore example.cpp
lyorig 84f7bf3
find_best_packing: return early if there are no subjects
lyorig 9b4df30
example: clarify raw arrays can be used
lyorig 1694965
find_best_packing_dont_sort: fix edge case of empty subjects
lyorig adecac7
example: clarify necessary STL container functions
lyorig 614cc9a
remove extraneous scope
lyorig cd701ed
fix whitespace
lyorig 1b577de
example: restore rectangle sizes
lyorig 91cc9b8
relocate empty subject list check to find_best_packing_impl
lyorig 9e8b4ee
backtrack certain changes; use unique_ptr for storing rects
lyorig cd7c85e
example: document std::size() subject requirement
lyorig ac109a2
use std::pair<iterator, iterator> as a makeshift std::span
lyorig d60fa74
compile fix: missing <memory>
lyorig 44bc398
find_best_packing_impl: use std::optional for best order iterator
lyorig 60f5245
find_best_packing_impl: move both iterators into std::optional
lyorig 4b56111
best_packing_for_ordering(_impl): switch back to generic O ordering
lyorig 1ddc9bb
example: fix whitespace
lyorig e4a09cc
find_best_packing: rename count_subjects to count_valid_subjects
lyorig 8d61511
find_best_packing_impl: re-add scope braces
lyorig 22689a3
find_best_packing_impl: remove unnecessary comment
lyorig adcac4f
find_best_packing_impl: alias iterator pair as OrderType
lyorig 5933cb9
preserve order_type
lyorig 7a00a21
example: fix whitespace
lyorig cbb9708
best_bin_finder: fix whitespace
lyorig d355b20
finders_interface: fix whitespace
lyorig c96e235
finders_interface: fix whitespace
lyorig 9d43cef
Revert "finders_interface: fix whitespace"
lyorig 9f99e9b
find_best_packing_impl: const-ify OrderType& in for_each_order lambda
lyorig 56b1612
best_bin_finder: de-format
lyorig b9a283f
Apply suggestion from @geneotech
geneotech 12658a8
Apply suggestion from @geneotech
geneotech 9ec723d
Apply suggestion from @geneotech
geneotech a10f726
comments
742aa2c
comments
68082c2
adjust scope
da4c297
emulate span to simplify loops
d0e716a
more readable loop
f50cbb0
simplify loops with ith_order lambda
8257624
adjust
af53bd6
adjust
7dcd6ab
const
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| /cmake-build-debug/ | ||
| .DS_Store | ||
| .idea | ||
| .cache/ | ||
| *.iml | ||
| example/clang_commands.sh | ||
| example/main | ||
|
|
||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ target_include_directories( | |
| rectpack2D | ||
| INTERFACE | ||
| ${CMAKE_CURRENT_SOURCE_DIR}/ | ||
| ) | ||
| ) | ||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.