Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Static Public Member Functions | Friends

IntList Class Reference
[Datastructures]

Int list. More...

#include <OpenMS/DATASTRUCTURES/IntList.h>

Inherits std::vector< Int >.

List of all members.

Public Member Functions

template<typename IntType >
IntListoperator<< (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>
IntListoperator= (const IntList &rhs)
 Assignment operator.
IntListoperator= (const std::vector< Int > &rhs)
 Assignment operator from vector<Int>
IntListoperator= (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

Detailed Description

Int list.

This class is based on std::vector<Int> but adds some methods for convenience.


Constructor & Destructor Documentation

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>


Member Function Documentation

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.

static IntList create ( const String list  )  [static]
IntList& operator<< ( IntType  value  )  [inline]

Operator for appending entries with less code.

IntList& operator= ( const std::vector< Int > &  rhs  ) 

Assignment operator from vector<Int>

IntList& operator= ( const std::vector< UInt > &  rhs  ) 

Assignment operator from vector<UInt>

IntList& operator= ( const IntList rhs  ) 

Assignment operator.


Friends And Related Function Documentation

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