![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Generic primary traits template providing zero-initialization for a 3D gradient vector container of type GV. More...
#include <GradientVectorTraits.hpp>
Public Types | |
| typedef GV | VectorType |
| The gradient vector container type. More... | |
| typedef std::size_t | SizeType |
| The type used to specify gradient vector container element counts. More... | |
Static Public Member Functions | |
| static void | clear (VectorType &g, std::size_t num_elem) |
| Zeroes the first num_elem elements of the container g. More... | |
Generic primary traits template providing zero-initialization for a 3D gradient vector container of type GV.
The primary template assumes GV is indexable via operator[] with each element exposing 3 components ([0], [1], [2]) and clears them by direct assignment.
| GV | The gradient vector container type. |
| typedef GV CDPL::ForceField::GradientVectorTraits< GV >::VectorType |
The gradient vector container type.
| typedef std::size_t CDPL::ForceField::GradientVectorTraits< GV >::SizeType |
The type used to specify gradient vector container element counts.
|
inlinestatic |
Zeroes the first num_elem elements of the container g.
| g | The gradient vector container to clear. |
| num_elem | The number of leading elements to clear. |