Representation of a HPLC gradient.
Definition Gradient.h:27
const std::vector< Int > & getTimepoints() const
returns a const reference to the list of timepoints
bool operator==(const Gradient &source) const
Equality operator.
std::vector< Int > times_
Definition Gradient.h:99
void clearTimepoints()
removes all timepoints
void clearPercentages()
sets all percentage values to 0
void setPercentage(const String &eluent, Int timepoint, UInt percentage)
sets the percentage of eluent eluent at timepoint timepoint
Gradient & operator=(Gradient &&) &=default
Move assignment operator.
bool isValid() const
checks if the percentages of all timepoints add up to 100%
Gradient(Gradient &&)=default
Move constructor.
void addTimepoint(Int timepoint)
Adds a timepoint at the end of the timepoint array.
std::vector< std::vector< UInt > > percentages_
Definition Gradient.h:101
Gradient(const Gradient &)=default
Copy constructor.
Gradient()=default
Constructor.
const std::vector< std::vector< UInt > > & getPercentages() const
returns a const reference to the percentages
void clearEluents()
removes all eluents
UInt getPercentage(const String &eluent, Int timepoint) const
returns the percentage of an eluent at a timepoint
const std::vector< String > & getEluents() const
returns a const reference to the list of eluents
bool operator!=(const Gradient &source) const
Equality operator.
void addEluent(const String &eluent)
Adds an eluent at the end of the eluent array.
std::vector< String > eluents_
Definition Gradient.h:98
Gradient & operator=(const Gradient &)=default
Assignment operator.
A more convenient string class.
Definition String.h:34
int Int
Signed integer type.
Definition Types.h:72
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19