27 #ifndef CDPL_GRID_SPATIALGRID_HPP
28 #define CDPL_GRID_SPATIALGRID_HPP
51 template <
typename T,
typename CVT = T>
Definition of class CDPL::Grid::AttributedGrid.
Definition of vector data types.
Abstract base class for grid types that also carry generic key/value properties.
Definition: AttributedGrid.hpp:50
AttributedGrid & operator=(const AttributedGrid &grid)
Assignment operator.
Definition: AttributedGrid.hpp:81
Abstract base class for attributed grids whose elements have a defined 3D position in space.
Definition: SpatialGrid.hpp:53
T ValueType
The grid element value type.
Definition: SpatialGrid.hpp:59
Math::CVector< CVT, 3 > CoordinatesType
The fixed-size 3D coordinate vector type.
Definition: SpatialGrid.hpp:63
CVT CoordinatesValueType
The coordinate value type.
Definition: SpatialGrid.hpp:61
SpatialGrid & operator=(const SpatialGrid &grid)
Definition: SpatialGrid.hpp:87
std::shared_ptr< SpatialGrid > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated SpatialGrid instances.
Definition: SpatialGrid.hpp:57
virtual const ValueType & operator()(std::size_t i) const =0
Returns a const reference to the grid element at linear index i.
virtual ValueType & operator()(std::size_t i)=0
Returns a reference to the grid element at linear index i.
virtual void getCoordinates(std::size_t i, CoordinatesType &coords) const =0
Returns the 3D coordinates of the grid element at linear index i.
Fixed-size vector of dimension N backed by a C-array (no dynamic allocation).
Definition: Vector.hpp:1876
constexpr unsigned int T
Specifies Hydrogen (Tritium).
Definition: AtomType.hpp:67
SpatialGrid< float > FSpatialGrid
Convenience alias for the single-precision spatial-grid abstract base.
Definition: SpatialGrid.hpp:95
SpatialGrid< double > DSpatialGrid
Convenience alias for the double-precision spatial-grid abstract base.
Definition: SpatialGrid.hpp:97
The namespace of the Chemical Data Processing Library.