Gromacs
5.1
|
Functions | |
template<typename ValueType > | |
void | expandVector (size_t length, std::vector< ValueType > *values) |
Expands a single value to a vector by copying the value. More... | |
void anonymous_namespace{basicoptions.cpp}::expandVector | ( | size_t | length, |
std::vector< ValueType > * | values | ||
) |
Expands a single value to a vector by copying the value.
ValueType | Type of values to process. |
[in] | length | Length of the resulting vector. |
[in,out] | values | Values to process. |
std::bad_alloc | if out of memory. |
InvalidInputError | if values has an invalid number of values. |
values
should have 0, 1, or length
values. If values
has 1 value, it is expanded such that it has length
identical values. In other valid cases, nothing is done.