Should Element store a constant pointer to the mesh?
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- cpp
調査の方向性
Start by inspecting the Element and RangeSetBase classes and the existing constant-reference iteration behavior. Trace every place these classes use their mesh pointers to determine whether non-constant mesh access is required; done means documenting the remaining requirements and confirming whether both pointers can safely become pointers to constant meshes.
索引モデルが issue の本文から書いたものです。
説明
I have noticed that it is currently not possible to iterate over the elements of a constant reference - even if it is read only. However it seems to me that there is no reason for the Element and RangeSetBase class to store a nonconstant pointer. Note that this does NOT mean, that the pointer cannot change, we can still set it to nullptr or a different mesh - only the value that the pointer points to cannot, i.e. we would not be allowed to change element.getMesh()
I have implemented this for the Element class and it seems to work flawlessly. Is there any point where the elements require non-constant references?
- 主要言語
- C++
- スター
- 1.3k
- フォーク
- 183
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nmwsharp/geometry-central のほかの issue
-
warning: control reaches end of non-void function in VectorHeatMethodSolver::computeLogMap対応中かも @dyollb が 64 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
nmwsharp/geometry-central#256 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nmwsharp/geometry-central#258 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nmwsharp/geometry-central#255 · コメント 1 件 ·
-
FlipEdgeNetwork::iterativeShorten() hangs on a contractible closed loop対応中かも @designbynumbers が 115 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
nmwsharp/geometry-central#253 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
nmwsharp/geometry-central#247 ·
nmwsharp/geometry-central の issue をすべて見る
似ている issue
-
ai_p1 comp-message-queues
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ClickHouse/ClickHouse#125890 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
yt-project/ewah_bool_utils#215 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
redis/memtier_benchmark#642 ·
メンテナーはふだん 1 日以内に返信
-
Feature Request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
sandboxie-plus/Sandboxie#5653 ·
メンテナーはふだん 1 日以内に返信