DoubleReal list. More...
#include <OpenMS/DATASTRUCTURES/DoubleList.h>
Public Member Functions | |
template<typename DoubleType > | |
DoubleList & | operator<< (DoubleType value) |
Operator for appending entries with less code. More... | |
bool | contains (DoubleReal s, DoubleReal tolerance=0.00001) const |
Returns if s is contains in the list, allowing a deviation of tolerance . More... | |
Constructors and assignment operators | |
DoubleList () | |
Default constructor. More... | |
DoubleList (const DoubleList &rhs) | |
Copy constructor. More... | |
DoubleList (const std::vector< Real > &rhs) | |
Constructor from vector<Real> More... | |
DoubleList (const std::vector< DoubleReal > &rhs) | |
Constructor from vector<DoubleReal> More... | |
DoubleList & | operator= (const DoubleList &rhs) |
Assignment operator. More... | |
DoubleList & | operator= (const std::vector< DoubleReal > &rhs) |
Assignment operator from vector<DoubleReal> More... | |
DoubleList & | operator= (const std::vector< Real > &rhs) |
Assignment operator from vector<Real> More... | |
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!) More... | |
static DoubleList | create (const StringList &list) |
Returns a list that is created by converting every string element of the given StringList. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const DoubleList &p) |
output stream operator More... | |
Additional Inherited Members | |
![]() | |
T | elements |
STL member. More... | |
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 |
Returns a list that is created by splitting the given comma-separated string (String are not trimmed!)
Referenced by XMLHandler::attributeAsDoubleList_().
|
static |
Returns a list that is created by converting every string element of the given StringList.
|
inline |
Operator for appending entries with less code.
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>
|
friend |
output stream operator
OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:29 using doxygen 1.8.5 |