DoubleReal list. More...
#include <OpenMS/DATASTRUCTURES/DoubleList.h>
Inherits std::vector< DoubleReal >.
Public Member Functions | |
| template<typename DoubleType > | |
| DoubleList & | operator<< (DoubleType value) |
| Operator for appending entries with less code. | |
| bool | contains (DoubleReal s, DoubleReal tolerance=0.00001) const |
Returns if s is contains in the list, allowing a deviation of tolerance. | |
Constructors and assignment operators | |
| DoubleList () | |
| Default constructor. | |
| DoubleList (const DoubleList &rhs) | |
| Copy constructor. | |
| DoubleList (const std::vector< Real > &rhs) | |
| Constructor from vector<Real> | |
| DoubleList (const std::vector< DoubleReal > &rhs) | |
| Constructor from vector<DoubleReal> | |
| DoubleList & | operator= (const DoubleList &rhs) |
| Assignment operator. | |
| DoubleList & | operator= (const std::vector< DoubleReal > &rhs) |
| Assignment operator from vector<DoubleReal> | |
| DoubleList & | operator= (const std::vector< Real > &rhs) |
| Assignment operator from vector<Real> | |
Static Public Member Functions | |
| static DoubleList | create (const String &list) |
| Returns a list that is created by splitting the given comma-separated string (String are not trimmed!). | |
| static DoubleList | create (const StringList &list) |
| Returns a list that is created by converting every string element of the given StringList. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const DoubleList &p) |
| output stream operator | |
DoubleReal list.
This class is based on std::vector<DoubleReal> but adds some methods for convenience.
| DoubleList | ( | ) |
Default constructor.
| DoubleList | ( | const DoubleList & | rhs | ) |
Copy constructor.
| DoubleList | ( | const std::vector< Real > & | rhs | ) |
Constructor from vector<Real>
| DoubleList | ( | const std::vector< DoubleReal > & | rhs | ) |
Constructor from vector<DoubleReal>
| bool contains | ( | DoubleReal | s, | |
| DoubleReal | tolerance = 0.00001 | |||
| ) | const |
Returns if s is contains in the list, allowing a deviation of tolerance.
| static DoubleList create | ( | const StringList & | list | ) | [static] |
Returns a list that is created by converting every string element of the given StringList.
| static DoubleList create | ( | const String & | list | ) | [static] |
Returns a list that is created by splitting the given comma-separated string (String are not trimmed!).
Referenced by XMLHandler::attributeAsDoubleList_().
| DoubleList& operator<< | ( | DoubleType | value | ) | [inline] |
Operator for appending entries with less code.
| DoubleList& operator= | ( | const std::vector< DoubleReal > & | rhs | ) |
Assignment operator from vector<DoubleReal>
| DoubleList& operator= | ( | const std::vector< Real > & | rhs | ) |
Assignment operator from vector<Real>
| DoubleList& operator= | ( | const DoubleList & | rhs | ) |
Assignment operator.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const DoubleList & | p | |||
| ) | [friend] |
output stream operator
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:52 using doxygen 1.7.1 |