View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028853 | Community | OCCT:Application Framework | public | 2017-06-19 11:01 | 2019-07-29 18:09 |
Reporter | BenjaminBihler | Assigned To | bugmaster | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Target Version | 7.2.0 | Fixed in Version | 7.2.0 | ||
Summary | 0028853: TDF_AttributeIterator should give handles instead of pointers | ||||
Description | The Value() method returns a plain pointer to a TDF_Attribute. This seems unnatural, since attributes are added to labels as handles and also passing around plain pointers seems to be avoided in large parts of the OCCT API. | ||||
Steps To Reproduce | Not required | ||||
Additional information and documentation updates | This issue has caused confusion, because at least one user has thought that it was not possible to later create a handle out of a plain pointer (see https://www.opencascade.com/content/should-tdfattributeiterator-be-handled-care), which is not correct. | ||||
Tags | No tags attached. | ||||
Test case number | Not required | ||||
|
Branch CR28853 has been created by mpv. SHA-1: 099898aa4f09bb93802120ce030861428b2da081 Detailed log of new commits: Author: mpv Date: Tue Jun 20 16:55:05 2017 +0300 0028853: TDF_AttributeIterator should give handles instead of pointers Make "Value" method of the iterator return Handle (instead of pointer) to unify public interfaces. |
|
Please, review. Making myValue as Handle is not done because it slowes down the iterator. |
|
Reviewed. |
|
Dear BugMaster, During building of branch CR28853 (SHA-1: 099898aa4f09bb93802120ce030861428b2da081) from occt git-repository (and master from products git-repository) compilation errors have been detected on Windows: http://jenkins-test-09.nnov.opencascade.com/view/CR28853-master/view/OCCT%20compile/job/CR28853-master-OCCT-Windows-64-VC10-opt-compile/1/parsed_console/ Moreover, compilation errors have been detected during building of Qt products samples on Linux: http://jenkins-test-09.nnov.opencascade.com/view/CR28853-master/view/SAMPLES/job/CR28853-master-Products-Debian70-64-qt-samples-linux/1/parsed_console/ |
|
Dear mpv, Branch CR28853 has been rejected due to: - compilation errors |
|
Branch CR28853_2 has been created by mpv. SHA-1: ebcc6ada8544cd98461c5af4be8948e1e53ac118 Detailed log of new commits: Author: mpv Date: Mon Jun 26 15:41:09 2017 +0300 0028853: TDF_AttributeIterator should give handles instead of pointers Make "Value" method of the iterator return Handle (instead of pointer) to unify public interfaces. |
|
Fixed in CR28853_2 in sources and CR28853_2 in products. Tested in http://jenkins-test-10.nnov.opencascade.com:8080/view/CR28853_2-CR28853_2-MPV/ |
|
Reviewed. |
|
Dear BugMaster, Branch CR28853_2 from occt git-repository (and CR28853_2 from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested. SHA-1: ebcc6ada8544cd98461c5af4be8948e1e53ac118 SHA-1: a51c7ef79a82f8cca08f1686245020e370288a82 Number of compiler warnings: occt component: Linux: 0 (0 on master) Windows: 0 (0 on master) MasOS: 0 (0 on master) products component: Linux: 64 Windows: 0 MacOS: 1202 Regressions/Differences: Not detected Testing cases: Not required Testing on Linux: occt component: Total MEMORY difference: 92614449 / 92316309 [+0.32%] Total CPU difference: 19068.200000000197 / 19307.040000000077 [-1.24%] products component: Total MEMORY difference: 37660706 / 37648040 [+0.03%] Total CPU difference: 6409.330000000061 / 6425.730000000078 [-0.26%] Testing on Windows: occt component: Total MEMORY difference: 58830326 / 58831878 [-0.00%] Total CPU difference: 18016.290288298605 / 17646.30271659867 [+2.10%] products component: Total MEMORY difference: 27792578 / 27831679 [-0.14%] Total CPU difference: 6725.749113500075 / 6609.044765400073 [+1.77%] |
|
Dear BugMaster, Please integrate branch CR28853_2 into the occt git-repository master. Please integrate branch CR28853_2 into the products git-repository master. |
|
Branch CR28853 has been deleted by kgv. SHA-1: 099898aa4f09bb93802120ce030861428b2da081 |
|
Branch CR28853_2 has been deleted by kgv. SHA-1: ebcc6ada8544cd98461c5af4be8948e1e53ac118 |
occt: master fe4f17f0 2017-06-26 12:41:09
Committer: bugmaster Details Diff |
0028853: TDF_AttributeIterator should give handles instead of pointers Make "Value" method of the iterator return Handle (instead of pointer) to unify public interfaces. |
Affected Issues 0028853 |
|
mod - src/TDF/TDF_AttributeIterator.hxx | Diff File | ||
mod - src/TDF/TDF_Data.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-06-19 11:01 | BenjaminBihler | New Issue | |
2017-06-19 11:01 | BenjaminBihler | Assigned To | => abv |
2017-06-20 14:34 |
|
Assigned To | abv => mpv |
2017-06-20 14:34 |
|
Category | OCCT:Foundation Classes => OCCT:Application Framework |
2017-06-20 16:55 | git | Note Added: 0067549 | |
2017-06-20 16:57 |
|
Note Added: 0067550 | |
2017-06-20 16:57 |
|
Assigned To | mpv => szy |
2017-06-20 16:57 |
|
Status | new => resolved |
2017-06-20 16:57 |
|
Steps to Reproduce Updated | |
2017-06-22 10:14 |
|
Note Added: 0067580 | |
2017-06-22 10:14 |
|
Assigned To | szy => bugmaster |
2017-06-22 10:14 |
|
Status | resolved => reviewed |
2017-06-22 11:10 |
|
Test case number | => Not required |
2017-06-22 11:12 |
|
Assigned To | bugmaster => apv |
2017-06-22 14:41 |
|
Note Added: 0067593 | |
2017-06-22 14:41 |
|
Assigned To | apv => mpv |
2017-06-22 14:41 |
|
Status | reviewed => assigned |
2017-06-22 14:42 |
|
Note Added: 0067594 | |
2017-06-26 15:41 | git | Note Added: 0067687 | |
2017-06-27 10:28 |
|
Note Added: 0067712 | |
2017-06-27 10:28 |
|
Assigned To | mpv => szy |
2017-06-27 10:28 |
|
Status | assigned => resolved |
2017-06-29 11:42 |
|
Note Added: 0067802 | |
2017-06-29 11:42 |
|
Assigned To | szy => bugmaster |
2017-06-29 11:42 |
|
Status | resolved => reviewed |
2017-06-29 11:52 |
|
Assigned To | bugmaster => apv |
2017-06-29 12:42 |
|
Note Added: 0067808 | |
2017-06-29 12:42 |
|
Assigned To | apv => bugmaster |
2017-06-29 12:42 |
|
Status | reviewed => tested |
2017-06-29 12:43 |
|
Note Added: 0067809 | |
2017-06-30 12:01 | bugmaster | Changeset attached | => occt master fe4f17f0 |
2017-06-30 12:01 | bugmaster | Status | tested => verified |
2017-06-30 12:01 | bugmaster | Resolution | open => fixed |
2017-07-03 08:45 | git | Note Added: 0067898 | |
2017-07-03 08:45 | git | Note Added: 0067899 | |
2017-09-29 16:18 |
|
Fixed in Version | => 7.2.0 |
2017-09-29 16:28 |
|
Status | verified => closed |
2019-05-23 23:07 | kgv | Relationship added | related to 0030739 |