Gromacs  2022.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
gmx::SelectionTopologyProperties Struct Reference

#include <gromacs/selection/selectionenums.h>

Description

Describes topology properties required for selection evaluation.

See SelectionCollection::requiredTopologyProperties().

Public Member Functions

 SelectionTopologyProperties ()
 Initializes properties that does not require anything.
 
 SelectionTopologyProperties (bool needsTopology, bool needsMasses)
 Initializes properties with the given flags.
 
void merge (const SelectionTopologyProperties &other)
 Combines flags from another properties object to this.
 
bool hasAll () const
 Whether all flags are true (for short-ciruiting logic).
 
bool hasAny () const
 Whether any flag is true.
 

Static Public Member Functions

static SelectionTopologyProperties topology ()
 Returns a property object that requires generic topology info.
 
static SelectionTopologyProperties masses ()
 Returns a property object that requires atom masses.
 

Public Attributes

bool needsTopology
 Whether topology information is needed for selection evaluation.
 
bool needsMasses
 Whether atom masses are needed for selection evaluation.
 

The documentation for this struct was generated from the following file: