Gromacs
2026.0-dev-20241113-4b16639
|
#include <gromacs/mdtypes/forcebuffers.h>
A view of the force buffer.
This is used for read and/or write access to the force buffer.
Public Member Functions | |
ForceBuffersView (const ArrayRefWithPadding< RVec > &force, const ArrayRefWithPadding< RVec > &forceMtsCombined, const bool useForceMtsCombined) | |
Constructor, creates a view to force . | |
ForceBuffersView (const ForceBuffersView &o)=delete | |
Copy constructor deleted to avoid creating non-const from const. | |
ForceBuffersView (ForceBuffersView &&o)=delete | |
Move constructor deleted, but could be implemented. | |
ForceBuffersView & | operator= (const ForceBuffersView &v)=delete |
Copy assignment deleted to avoid creating non-const from const. | |
ForceBuffersView & | operator= (ForceBuffersView &&v)=default |
Move assignment, moves the view. | |
ArrayRef< const RVec > | force () const |
Returns a const arrayref to the force buffer without padding. | |
ArrayRef< RVec > | force () |
Returns an arrayref to the force buffer without padding. | |
ArrayRefWithPadding< RVec > | forceWithPadding () |
Returns an ArrayRefWithPadding to the force buffer. | |
ArrayRef< const RVec > | forceMtsCombined () const |
Returns a const arrayref to the MTS force buffer without padding. | |
ArrayRef< RVec > | forceMtsCombined () |
Returns an arrayref to the MTS force buffer without padding. | |
ArrayRefWithPadding< RVec > | forceMtsCombinedWithPadding () |
Returns an ArrayRefWithPadding to the MTS force buffer. | |