This PR adds a const identifier to the cross-reference methods to translate between entity handle, ID, and index.
There are probably other methods that this identifier can be applied to, but I didn't search them all out and figured it made sense to change these for sure.
Description
This PR adds a
const
identifier to the cross-reference methods to translate between entity handle, ID, and index.There are probably other methods that this identifier can be applied to, but I didn't search them all out and figured it made sense to change these for sure.
Motivation and Context
In downstream applications, it would be nice to be able to use
const DagMC*
when possible for safety. (see https://github.com/openmc-dev/openmc/pull/2687/commits/37a10fb74c1723df733035278af0a44c98dc92ee).Behavior
No change in the behavior of the code here. Just improved practices.