Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
IntList Class Reference

Int list. More...

#include <OpenMS/DATASTRUCTURES/IntList.h>

Inheritance diagram for IntList:

Public Member Functions

template<typename IntType >
IntListoperator<< (IntType value)
 Operator for appending entries with less code. More...
 
bool contains (Int s) const
 Returns if a string is contains in the list. More...
 
Constructors and assignment operators
 IntList ()
 Default constructor. More...
 
 IntList (const IntList &rhs)
 Copy constructor. More...
 
 IntList (const std::vector< UInt > &rhs)
 Constructor from vector<UInt> More...
 
 IntList (const std::vector< Int > &rhs)
 Constructor from vector<Int> More...
 
IntListoperator= (const IntList &rhs)
 Assignment operator. More...
 
IntListoperator= (const std::vector< Int > &rhs)
 Assignment operator from vector<Int> More...
 
IntListoperator= (const std::vector< UInt > &rhs)
 Assignment operator from vector<UInt> More...
 

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!) More...
 
static IntList 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 IntList &p)
 output stream operator More...
 

Additional Inherited Members

- Public Attributes inherited from vector< T >
elements
 STL member. More...
 

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 String list)
static
static IntList create ( const StringList list)
static

Returns a list that is created by converting every string element of the given StringList.

IntList& operator<< ( IntType  value)
inline

Operator for appending entries with less code.

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>

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const IntList p 
)
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