11#ifndef _GRID3D_H_20050124_1113
12#define _GRID3D_H_20050124_1113
18class DiscreteValueVect;
30 const char *
what() const noexcept
override {
return _msg.c_str(); }
38template <typename VectorType, typename ValueType1, typename ValueType2>
47 virtual ValueType2
getVal(
unsigned int pointId)
const = 0;
48 virtual void setVal(
unsigned int pointId, ValueType2 val) = 0;
Virtual base class for a grid object.
virtual ValueType1 getVal(const Point3D &point) const =0
virtual void setVal(const Point3D &point, ValueType2 val)=0
virtual unsigned int getSize() const =0
virtual void setVal(unsigned int pointId, ValueType2 val)=0
virtual const VectorType * getOccupancyVect() const =0
virtual int getGridPointIndex(const Point3D &point) const =0
virtual ValueType2 getVal(unsigned int pointId) const =0
virtual Point3D getGridPointLoc(unsigned int pointId) const =0
GridException(const char *msg)
construct with an error message
~GridException() noexcept override=default
const char * what() const noexcept override
get the error message
GridException(std::string msg)
construct with an error message
#define RDKIT_RDGEOMETRYLIB_EXPORT