Gromacs
2024.3
|
#include <gromacs/selection/selectioncollection_impl.h>
Implements selection evaluation.
This class is used to implement SelectionCollection::evaluate() and SelectionCollection::evaluateFinal().
Public Member Functions | |
void | evaluate (SelectionCollection *sc, t_trxframe *fr, t_pbc *pbc) |
Evaluates selections in a collection. More... | |
void | evaluateFinal (SelectionCollection *sc, int nframes) |
Evaluates the final state for dynamic selections. More... | |
void gmx::SelectionEvaluator::evaluate | ( | SelectionCollection * | coll, |
t_trxframe * | fr, | ||
t_pbc * | pbc | ||
) |
Evaluates selections in a collection.
[in,out] | coll | The selection collection to evaluate. |
[in] | fr | Frame for which the evaluation should be carried out. |
[in] | pbc | PBC data, or NULL if no PBC should be used. |
This functions sets the global variables for topology, frame and PBC, clears some information in the selection to initialize the evaluation for a new frame, and evaluates sel
and all the selections pointed by the next
pointers of sel
.
This is the only function that user code should call if they want to evaluate a selection for a new frame.
void gmx::SelectionEvaluator::evaluateFinal | ( | SelectionCollection * | coll, |
int | nframes | ||
) |
Evaluates the final state for dynamic selections.
[in,out] | coll | The selection collection to evaluate. |
[in] | nframes | Total number of frames. |