imageworks / Field3D

[NO LONGER MAINTAINED] A library for storing voxel data on disk and in memory.
https://github.com/imageworks/Field3D/wiki/Field3D-Home
BSD 3-Clause "New" or "Revised" License
305 stars 72 forks source link

Const missing from lots of methods in Field hierarchy #5

Open magnusw opened 13 years ago

magnusw commented 13 years ago

'const VecFloatMetadata& vecFloatMetadata()' should be const. RTTI replacement calls are missing const, 'const FieldMapping::Ptr mapping()' should be pointer-to-const, not const pointer. 'bool isInBounds(int i, int j, int k)' should be const. The list goes on.

At the same time, add a 'CPtr' typedef for pointer to const field to all classes that have Ptr.