Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::OptionsBehaviorCollection Class Reference

#include <gromacs/options/behaviorcollection.h>

Description

Container for IOptionsBehavior objects.

This class provides a container to keep IOptionsBehavior objects, and to call the IOptionsBehavior methods for the contained objects.

IOptionsBehavior methods are called for the contained objects in the same order as in which the behaviors were inserted.

Public Member Functions

 OptionsBehaviorCollection (Options *options)
 Constructs a container for storing behaviors associated with given Options. More...
 
void addBehavior (const OptionsBehaviorPointer &behavior)
 Adds a behavior to the collection.
 
void optionsFinishing ()
 Calls IOptionsBehavior::optionsFinishing() on all behaviors.
 
void optionsFinished ()
 Calls IOptionsBehavior::optionsFinished() on all behaviors.
 

Constructor & Destructor Documentation

gmx::OptionsBehaviorCollection::OptionsBehaviorCollection ( Options options)
explicit

Constructs a container for storing behaviors associated with given Options.

Caller needs to ensure that provided Options remains in existence while the container exists.


The documentation for this class was generated from the following files: