Gromacs  2021.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
basicoptions.cpp File Reference
#include "gmxpre.h"
#include "basicoptions.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <limits>
#include <string>
#include <vector>
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/strconvert.h"
#include "gromacs/utility/stringutil.h"
#include "basicoptionstorage.h"
+ Include dependency graph for basicoptions.cpp:

Description

Implements classes in basicoptions.h and basicoptionstorage.h.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Functions

template<typename ValueType >
void anonymous_namespace{basicoptions.cpp}::expandVector (size_t length, std::vector< ValueType > *values)
 Expands a single value to a vector by copying the value. More...
 
std::vector< std::string >
::const_iterator 
anonymous_namespace{basicoptions.cpp}::findEnumValue (const std::vector< std::string > &allowedValues, const std::string &value)
 Finds an enumerated value from the list of allowed values. More...
 
AbstractOptionStorage * gmx::internal::createEnumOptionStorage (const AbstractOption &option, const char *const *enumValues, int count, int defaultValue, int defaultValueIfSet, std::unique_ptr< IOptionValueStore< int >> store)
 Helper to create EnumOptionStorage instances. More...