69 template <
typename ContainerT>
75 template <
class ValueT>
94 vector_ = (
typename std::vector<ValueType*>*)vec;
115 if (
this == &rhs)
return *
this;
240 template <
class ValueT>
377 typedef typename ContainerType::pointer
pointer;
431 return Iterator((std::vector<const ValueType*>*) &
vector_, (
unsigned int)0);
599 std::vector<const ValueType*> tmp;
609 template <
class InputIterator>
613 std::vector<const ValueType*> tmp;
614 for (InputIterator it = f; it != l; ++it)
650 vector_ = std::vector<const ValueType*>(n);
658 vector_ = std::vector<const ValueType*>(n, &element);
675 template <
class InputIterator>
681 for (InputIterator it = f; it != l; ++it)
694 for (
typename ContainerType::iterator it = p.begin(); it != p.end(); ++it)
711 if (
this == &rhs)
return *
this;
727 template <
class InputIterator>
728 void assign(InputIterator f, InputIterator l)
784 template <
typename ComparatorType>
ConstRefVectorIterator(const ConstRefVectorIterator< ValueType > &it)
Definition: ConstRefVector.h:265
ConstRefVectorConstIterator< ValueType >::value_type & reference
Definition: ConstRefVector.h:249
ContainerT ContainerType
Type definitions.
Definition: ConstRefVector.h:361
std::vector< ValueType * > * vector_
Definition: ConstRefVector.h:234
bool operator<=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:564
Iterator iterator
Definition: ConstRefVector.h:378
~ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:702
ContainerType::pointer pointer
Definition: ConstRefVector.h:377
pointer operator->() const
Definition: ConstRefVector.h:284
ConstRefVectorIterator()
Definition: ConstRefVector.h:256
ValueT ValueType
Definition: ConstRefVector.h:248
ConstRefVectorConstIterator operator-(difference_type n) const
Definition: ConstRefVector.h:179
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
ConstRefVector & operator=(const ConstRefVector &rhs)
See std::vector documentation.
Definition: ConstRefVector.h:709
Iterator insert(Iterator pos, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:588
void resize(size_type new_size, const ValueType &t)
See std::vector documentation.
Definition: ConstRefVector.h:484
pointer operator->()
Definition: ConstRefVector.h:222
ConstRefVectorConstIterator< ValueType >::value_type * pointer
Definition: ConstRefVector.h:250
ConstRefVectorConstIterator operator++(int)
Definition: ConstRefVector.h:159
Iterator erase(Iterator pos)
See std::vector documentation.
Definition: ConstRefVector.h:623
~ConstRefVectorConstIterator()
Definition: ConstRefVector.h:110
friend difference_type operator-(const ConstRefVectorConstIterator &i1, const ConstRefVectorConstIterator &i2)
Definition: ConstRefVector.h:205
ConstRefVector(size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:654
ConstRefVectorConstIterator(const typename std::vector< ValueType *> *vec, unsigned int position)
Definition: ConstRefVector.h:92
ContainerType::size_type size_type
Definition: ConstRefVector.h:373
Iterator begin()
See std::vector documentation.
Definition: ConstRefVector.h:429
bool operator<(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:552
void sortByIntensity(bool reverse=false)
Sorting.
Definition: ConstRefVector.h:751
ConstRefVectorConstIterator & operator-=(difference_type n)
Definition: ConstRefVector.h:199
bool operator>=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:570
ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:639
ReverseComparator< Cmp > reverseComparator(Cmp const &cmp)
Make-function to create a ReverseComparator from another comparator without the need to specify the t...
Definition: ComparatorUtils.h:260
pointer operator->() const
Definition: ConstRefVector.h:227
ConstRefVector(const ConstRefVector &p)
See std::vector documentation.
Definition: ConstRefVector.h:662
ConstRefVectorConstIterator(typename std::vector< ValueType *> *vec, unsigned int position)
Definition: ConstRefVector.h:98
ConstRefVectorConstIterator & operator+=(difference_type n)
Definition: ConstRefVector.h:193
ConstRefVectorIterator< const ValueType > Iterator
Definition: ConstRefVector.h:364
ConstRefVectorIterator & operator++()
Definition: ConstRefVector.h:289
std::vector< const ValueType * > vector_
the internal vector of ValueType pointers
Definition: ConstRefVector.h:797
ValueT ValueType
Definition: ConstRefVector.h:81
friend void swap(ConstRefVector &a1, ConstRefVector &a2)
See std::vector documentation.
Definition: ConstRefVector.h:582
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ConstReverseIterator rend() const
See std::vector documentation.
Definition: ConstRefVector.h:471
bool operator>(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:558
ConstIterator for the ConstRefVector.
Definition: ConstRefVector.h:76
size_type max_size() const
See std::vector documentation.
Definition: ConstRefVector.h:423
ConstRefVectorIterator & operator+=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:336
ConstRefVectorIterator & operator-=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:342
ConstRefVectorConstIterator & operator=(const ConstRefVectorConstIterator &rhs)
Definition: ConstRefVector.h:113
ConstRefVectorIterator & operator--()
Definition: ConstRefVector.h:302
void assign(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:728
pointer operator->()
Definition: ConstRefVector.h:279
ReverseIterator rbegin()
See std::vector documentation.
Definition: ConstRefVector.h:453
void assign(size_type n, const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:735
const value_type & reference
Definition: ConstRefVector.h:84
ConstRefVectorConstIterator(const ConstRefVectorConstIterator &it)
Definition: ConstRefVector.h:104
friend void swap(ConstRefVectorIterator &i1, ConstRefVectorIterator &i2)
Definition: ConstRefVector.h:348
ConstRefVectorIterator operator-(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:315
ConstIterator end() const
See std::vector documentation.
Definition: ConstRefVector.h:447
bool operator!=(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:546
ValueType value_type
STL-compliance type definitions.
Definition: ConstRefVector.h:372
bool empty() const
See std::vector documentation.
Definition: ConstRefVector.h:509
const_reference operator[](size_type n) const
See std::vector documentation.
Definition: ConstRefVector.h:515
ValueType value_type
Definition: ConstRefVector.h:82
ConstRefVectorConstIterator operator+(difference_type n) const
Definition: ConstRefVector.h:186
ContainerType::reference reference
Definition: ConstRefVector.h:375
const_reference back() const
See std::vector documentation.
Definition: ConstRefVector.h:497
ConstRefVectorConstIterator operator--(int)
Definition: ConstRefVector.h:172
void swap(ConstRefVector &array)
See std::vector documentation.
Definition: ConstRefVector.h:576
void clear()
See std::vector documentation.
Definition: ConstRefVector.h:503
ContainerType::difference_type difference_type
Definition: ConstRefVector.h:374
std::vector< ValueType * >::difference_type difference_type
Definition: ConstRefVector.h:83
reference operator*()
Definition: ConstRefVector.h:217
bool operator>=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:138
void pop_back()
See std::vector documentation.
Definition: ConstRefVector.h:393
ConstRefVectorConstIterator()
Definition: ConstRefVector.h:88
std::reverse_iterator< ConstIterator > ConstReverseIterator
Definition: ConstRefVector.h:367
ConstRefVector(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:676
ConstRefVector(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:646
Mutable iterator for the ConstRefVector.
Definition: ConstRefVector.h:241
void push_back(const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:386
bool operator==(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:521
void insert(Iterator pos, size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:596
void resize(size_type new_size)
See std::vector documentation.
Definition: ConstRefVector.h:477
friend ConstRefVectorConstIterator operator+(difference_type n, const ConstRefVectorConstIterator &i)
Definition: ConstRefVector.h:210
ContainerType::value_type ValueType
Definition: ConstRefVector.h:363
size_type capacity_
the current capacity
Definition: ConstRefVector.h:799
ConstRefVectorConstIterator & operator--()
Definition: ConstRefVector.h:166
PointerComparator< Cmp > pointerComparator(Cmp const &cmp)
Make-function to create a PointerComparator from another comparator without the need to specify the t...
Definition: ComparatorUtils.h:209
const ContainerType * base_container_ptr_
Pointer to the base container.
Definition: ConstRefVector.h:801
Iterator erase(Iterator first, Iterator last)
See std::vector documentation.
Definition: ConstRefVector.h:630
bool operator>(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:128
ConstRefVectorIterator(typename std::vector< ValueType *> *vec, unsigned int position)
Definition: ConstRefVector.h:260
ContainerType::const_reference const_reference
Definition: ConstRefVector.h:376
ConstRefVectorIterator operator++(int)
Definition: ConstRefVector.h:295
bool operator!=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:148
const_reference front() const
See std::vector documentation.
Definition: ConstRefVector.h:491
std::reverse_iterator< Iterator > ReverseIterator
Definition: ConstRefVector.h:366
ConstRefVectorConstIterator< const ValueType > ConstIterator
Definition: ConstRefVector.h:365
const value_type * pointer
Definition: ConstRefVector.h:85
void sortByComparator(ComparatorType const &comparator=ComparatorType())
Definition: ConstRefVector.h:785
ReverseIterator reverse_iterator
Definition: ConstRefVector.h:380
ConstRefVectorIterator operator--(int)
Definition: ConstRefVector.h:308
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
ConstRefVector(ContainerType &p)
See std::vector documentation.
Definition: ConstRefVector.h:689
std::random_access_iterator_tag iterator_category
Definition: ConstRefVector.h:86
ReverseIterator rend()
See std::vector documentation.
Definition: ConstRefVector.h:459
ConstIterator const_iterator
Definition: ConstRefVector.h:379
This vector holds pointer to the elements of another container.
Definition: ConstRefVector.h:70
~ConstRefVectorIterator()
Definition: ConstRefVector.h:270
reference operator*()
Definition: ConstRefVector.h:274
size_type size() const
See std::vector documentation.
Definition: ConstRefVector.h:399
bool operator<=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:133
void sortByPosition()
Lexicographically sorts the elements by their position.
Definition: ConstRefVector.h:764
friend ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n, const ConstRefVectorIterator &i)
Definition: ConstRefVector.h:329
unsigned int position_
Definition: ConstRefVector.h:235
bool operator<(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:123
ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:322
ConstIterator begin() const
See std::vector documentation.
Definition: ConstRefVector.h:441
Iterator end()
See std::vector documentation.
Definition: ConstRefVector.h:435
ConstRefVectorConstIterator & operator++()
Definition: ConstRefVector.h:153
ConstReverseIterator const_reverse_iterator
Definition: ConstRefVector.h:381
size_type capacity() const
See std::vector documentation.
Definition: ConstRefVector.h:405
ConstReverseIterator rbegin() const
See std::vector documentation.
Definition: ConstRefVector.h:465
void insert(Iterator pos, InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:610
bool operator==(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:143
void reserve(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:411