-
- Downloads
fix: consistent behavior of GetHashCode/hash_code
Behavior was made more consistent. Methods are now available on all the (Atom|Residue|Chain)(Handle|View)s, including in Python, and documented. A hash code is an `unsigned long`, and requesting it on an invalid handle raises an `InvalidHande` exception. In practice, the following was implemented: - Exported to Python for ChainHandles - Added method on ResidueViews and ChainViews (including Python export) - Raise InvalidHandle error on ResidueHandle (was: return 0) - Explicitly check validity of ChainHandle (although behavior was to throw an error even without explicit check) - Changed return value from `long` to `unsigned long` on Atom(View|Handle)s.
Showing
- modules/mol/base/doc/entity.rst 58 additions, 2 deletionsmodules/mol/base/doc/entity.rst
- modules/mol/base/pymod/export_chain.cc 3 additions, 0 deletionsmodules/mol/base/pymod/export_chain.cc
- modules/mol/base/pymod/export_chain_view.cc 3 additions, 0 deletionsmodules/mol/base/pymod/export_chain_view.cc
- modules/mol/base/pymod/export_residue_view.cc 4 additions, 1 deletionmodules/mol/base/pymod/export_residue_view.cc
- modules/mol/base/src/atom_handle.cc 2 additions, 2 deletionsmodules/mol/base/src/atom_handle.cc
- modules/mol/base/src/atom_handle.hh 1 addition, 1 deletionmodules/mol/base/src/atom_handle.hh
- modules/mol/base/src/atom_view.cc 2 additions, 2 deletionsmodules/mol/base/src/atom_view.cc
- modules/mol/base/src/atom_view.hh 1 addition, 1 deletionmodules/mol/base/src/atom_view.hh
- modules/mol/base/src/bond_handle.cc 1 addition, 0 deletionsmodules/mol/base/src/bond_handle.cc
- modules/mol/base/src/chain_handle.cc 1 addition, 0 deletionsmodules/mol/base/src/chain_handle.cc
- modules/mol/base/src/chain_view.cc 6 additions, 0 deletionsmodules/mol/base/src/chain_view.cc
- modules/mol/base/src/chain_view.hh 6 additions, 0 deletionsmodules/mol/base/src/chain_view.hh
- modules/mol/base/src/residue_handle.cc 1 addition, 0 deletionsmodules/mol/base/src/residue_handle.cc
- modules/mol/base/src/residue_view.cc 6 additions, 0 deletionsmodules/mol/base/src/residue_view.cc
- modules/mol/base/src/residue_view.hh 6 additions, 0 deletionsmodules/mol/base/src/residue_view.hh
- modules/mol/base/tests/test_residue.cc 29 additions, 0 deletionsmodules/mol/base/tests/test_residue.cc
Loading
Please register or sign in to comment