Gromacs
2024.4
|
Private implemention class for SelectionOptionManager.
Classes | |
class | RequestsClearer |
Helper class that clears a request list on scope exit. More... | |
struct | SelectionRequest |
Request for postponed parsing of selections. More... | |
Public Types | |
typedef std::vector < SelectionRequest > | RequestList |
Collection for a list of selection requests. | |
typedef std::vector < SelectionOptionStorage * > | OptionList |
Collection for list of option storage objects. | |
Public Member Functions | |
Impl (SelectionCollection *collection) | |
Creates a new selection collection. More... | |
void | placeSelectionsInRequests (const SelectionList &selections) |
Assign selections from a list to pending requests. More... | |
void | requestUnsetRequiredOptions () |
Adds a request for each required option that is not yet set. More... | |
Public Attributes | |
SelectionCollection & | collection_ |
Selection collection to which selections are stored. | |
OptionList | options_ |
List of selection options (storage objects) this manager manages. | |
RequestList | requests_ |
List of selections requested for later parsing. | |
|
explicit |
Creates a new selection collection.
std::bad_alloc | if out of memory. |
void gmx::SelectionOptionManager::Impl::placeSelectionsInRequests | ( | const SelectionList & | selections | ) |
Assign selections from a list to pending requests.
[in] | selections | List of selections to assign. |
std::bad_alloc | if out of memory. |
InvalidInputError | if the assignment cannot be done (see parseRequestedFromFile() for documented conditions). |
Loops through selections
and the pending requests lists in order, and for each requests, assigns the first yet unassigned selections from the list.
void gmx::SelectionOptionManager::Impl::requestUnsetRequiredOptions | ( | ) |
Adds a request for each required option that is not yet set.
std::bad_alloc | if out of memory. |