Representation of a HPLC gradient.
Definition: Gradient.h:27
bool operator==(const Gradient &source) const
Equality operator.
std::vector< Int > times_
Definition: Gradient.h:99
Gradient & operator=(const Gradient &)=default
Assignment operator.
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
bool isValid() const
checks if the percentages of all timepoints add up to 100%
const std::vector< Int > & getTimepoints() const
returns a const reference to the list of timepoints
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 & operator=(Gradient &&) &=default
Move assignment operator.
Gradient(const Gradient &)=default
Copy constructor.
const std::vector< String > & getEluents() const
returns a const reference to the list of eluents
Gradient()=default
Constructor.
void clearEluents()
removes all eluents
UInt getPercentage(const String &eluent, Int timepoint) const
returns the percentage of an eluent at a timepoint
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
const std::vector< std::vector< UInt > > & getPercentages() const
returns a const reference to the percentages
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