Int list. More...
#include <OpenMS/DATASTRUCTURES/IntList.h>
Inherits std::vector< Int >.
Public Member Functions | |
| template<typename IntType > | |
| IntList & | operator<< (IntType value) |
| Operator for appending entries with less code. | |
| bool | contains (Int s) const |
| Returns if a string is contains in the list. | |
Constructors and assignment operators | |
| IntList () | |
| Default constructor. | |
| IntList (const IntList &rhs) | |
| Copy constructor. | |
| IntList (const std::vector< UInt > &rhs) | |
| Constructor from vector<UInt> | |
| IntList (const std::vector< Int > &rhs) | |
| Constructor from vector<Int> | |
| IntList & | operator= (const IntList &rhs) |
| Assignment operator. | |
| IntList & | operator= (const std::vector< Int > &rhs) |
| Assignment operator from vector<Int> | |
| IntList & | operator= (const std::vector< UInt > &rhs) |
| Assignment operator from vector<UInt> | |
Static Public Member Functions | |
| static IntList | create (const String &list) |
| Returns a list that is created by splitting the given comma-separated string (String are not trimmed!). | |
| static IntList | 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 IntList &p) |
| output stream operator | |
Int list.
This class is based on std::vector<Int> but adds some methods for convenience.
| IntList | ( | ) |
Default constructor.
| bool contains | ( | Int | s | ) | const |
Returns if a string is contains in the list.
Referenced by IDMapper::annotate().
| static IntList create | ( | const StringList & | list | ) | [static] |
Returns a list that is created by converting every string element of the given StringList.
Returns a list that is created by splitting the given comma-separated string (String are not trimmed!).
Referenced by XMLHandler::attributeAsIntList_(), FeatureFinderAlgorithmSH< PeakType, FeatureType >::FeatureFinderAlgorithmSH(), and OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap().
| IntList& operator<< | ( | IntType | value | ) | [inline] |
Operator for appending entries with less code.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const IntList & | 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 |