69 template <
typename ContainerT>
75 template <
class ValueT>
98 vector_ = (
typename std::vector<ValueType*>*)vec;
220 template <
class ValueT>
346 typedef typename ContainerType::pointer
pointer;
400 return Iterator((std::vector<const ValueType*>*) &
vector_, (
unsigned int)0);
568 std::vector<const ValueType*> tmp;
578 template <
class InputIterator>
582 std::vector<const ValueType*> tmp;
583 for (InputIterator it = f; it != l; ++it)
619 vector_ = std::vector<const ValueType*>(n);
627 vector_ = std::vector<const ValueType*>(n, &element);
644 template <
class InputIterator>
650 for (InputIterator it = f; it != l; ++it)
663 for (
typename ContainerType::iterator it = p.begin(); it != p.end(); ++it)
680 if (
this == &rhs)
return *
this;
696 template <
class InputIterator>
697 void assign(InputIterator f, InputIterator l)
753 template <
typename ComparatorType>
ConstIterator for the ConstRefVector.
Definition: ConstRefVector.h:77
ValueT ValueType
Definition: ConstRefVector.h:81
ConstRefVectorConstIterator & operator++()
Definition: ConstRefVector.h:138
ConstRefVectorConstIterator operator--(int)
Definition: ConstRefVector.h:157
ConstRefVectorConstIterator & operator+=(difference_type n)
Definition: ConstRefVector.h:178
ConstRefVectorConstIterator operator++(int)
Definition: ConstRefVector.h:144
bool operator<=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:118
std::random_access_iterator_tag iterator_category
Definition: ConstRefVector.h:86
ConstRefVectorConstIterator operator+(difference_type n) const
Definition: ConstRefVector.h:171
bool operator>(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:113
ValueType value_type
Definition: ConstRefVector.h:82
std::vector< ValueType * > * vector_
Definition: ConstRefVector.h:214
~ConstRefVectorConstIterator()=default
unsigned int position_
Definition: ConstRefVector.h:215
ConstRefVectorConstIterator & operator-=(difference_type n)
Definition: ConstRefVector.h:184
ConstRefVectorConstIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:102
ConstRefVectorConstIterator & operator=(const ConstRefVectorConstIterator &)=default
const value_type & reference
Definition: ConstRefVector.h:84
reference operator*() const
Definition: ConstRefVector.h:202
ConstRefVectorConstIterator(const typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:96
bool operator<(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:108
ConstRefVectorConstIterator & operator--()
Definition: ConstRefVector.h:151
friend ConstRefVectorConstIterator operator+(difference_type n, const ConstRefVectorConstIterator &i)
Definition: ConstRefVector.h:195
const value_type * pointer
Definition: ConstRefVector.h:85
ConstRefVectorConstIterator operator-(difference_type n) const
Definition: ConstRefVector.h:164
ConstRefVectorConstIterator()=default
bool operator>=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:123
ConstRefVectorConstIterator(const ConstRefVectorConstIterator &)=default
std::vector< ValueType * >::difference_type difference_type
Definition: ConstRefVector.h:83
bool operator!=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:133
pointer operator->() const
Definition: ConstRefVector.h:207
bool operator==(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:128
friend difference_type operator-(const ConstRefVectorConstIterator &i1, const ConstRefVectorConstIterator &i2)
Definition: ConstRefVector.h:190
Mutable iterator for the ConstRefVector.
Definition: ConstRefVector.h:223
ConstRefVectorIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:239
ConstRefVectorIterator operator--(int)
Definition: ConstRefVector.h:277
ValueT ValueType
Definition: ConstRefVector.h:228
ConstRefVectorIterator operator++(int)
Definition: ConstRefVector.h:264
ConstRefVectorIterator(const ConstRefVectorIterator &)=default
ConstRefVectorIterator & operator++()
Definition: ConstRefVector.h:258
ConstRefVectorIterator & operator+=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:305
~ConstRefVectorIterator()=default
friend void swap(ConstRefVectorIterator &i1, ConstRefVectorIterator &i2)
Definition: ConstRefVector.h:317
ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:291
ConstRefVectorIterator & operator--()
Definition: ConstRefVector.h:271
ConstRefVectorIterator & operator-=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:311
ConstRefVectorIterator & operator=(const ConstRefVectorIterator &rhs)=default
ConstRefVectorIterator operator-(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:284
reference operator*() const
Definition: ConstRefVector.h:248
ConstRefVectorConstIterator< ValueType >::value_type * pointer
Definition: ConstRefVector.h:230
ConstRefVectorIterator()=default
friend ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n, const ConstRefVectorIterator &i)
Definition: ConstRefVector.h:298
pointer operator->() const
Definition: ConstRefVector.h:253
ConstRefVectorConstIterator< ValueType >::value_type & reference
Definition: ConstRefVector.h:229
This vector holds pointer to the elements of another container.
Definition: ConstRefVector.h:71
friend void swap(ConstRefVector &a1, ConstRefVector &a2)
See std::vector documentation.
Definition: ConstRefVector.h:551
ConstRefVector(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:645
void pop_back()
See std::vector documentation.
Definition: ConstRefVector.h:362
ConstReverseIterator const_reverse_iterator
Definition: ConstRefVector.h:350
void insert(Iterator pos, InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:579
std::vector< const ValueType * > vector_
the internal vector of ValueType pointers
Definition: ConstRefVector.h:766
const_reference front() const
See std::vector documentation.
Definition: ConstRefVector.h:460
ConstRefVector(ContainerType &p)
See std::vector documentation.
Definition: ConstRefVector.h:658
ConstRefVector(const ConstRefVector &p)
See std::vector documentation.
Definition: ConstRefVector.h:631
ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:608
Iterator begin()
See std::vector documentation.
Definition: ConstRefVector.h:398
Iterator iterator
Definition: ConstRefVector.h:347
ConstRefVector(size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:623
ContainerType::reference reference
Definition: ConstRefVector.h:344
ContainerType::pointer pointer
Definition: ConstRefVector.h:346
std::reverse_iterator< Iterator > ReverseIterator
Definition: ConstRefVector.h:335
bool operator!=(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:515
Iterator erase(Iterator pos)
See std::vector documentation.
Definition: ConstRefVector.h:592
ConstRefVector & operator=(const ConstRefVector &rhs)
See std::vector documentation.
Definition: ConstRefVector.h:678
ConstReverseIterator rend() const
See std::vector documentation.
Definition: ConstRefVector.h:440
void resize(size_type new_size)
See std::vector documentation.
Definition: ConstRefVector.h:446
void reserve(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:380
ConstIterator const_iterator
Definition: ConstRefVector.h:348
void assign(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:697
size_type size() const
See std::vector documentation.
Definition: ConstRefVector.h:368
const_reference back() const
See std::vector documentation.
Definition: ConstRefVector.h:466
bool empty() const
See std::vector documentation.
Definition: ConstRefVector.h:478
Iterator erase(Iterator first, Iterator last)
See std::vector documentation.
Definition: ConstRefVector.h:599
ConstRefVector(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:615
bool operator<(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:521
Iterator insert(Iterator pos, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:557
ConstIterator end() const
See std::vector documentation.
Definition: ConstRefVector.h:416
bool operator>(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:527
size_type capacity_
the current capacity
Definition: ConstRefVector.h:768
ConstRefVectorIterator< const ValueType > Iterator
Definition: ConstRefVector.h:333
ContainerType::value_type ValueType
Definition: ConstRefVector.h:332
ValueType value_type
STL-compliance type definitions.
Definition: ConstRefVector.h:341
void sortByPosition()
Lexicographically sorts the elements by their position.
Definition: ConstRefVector.h:733
ConstReverseIterator rbegin() const
See std::vector documentation.
Definition: ConstRefVector.h:434
void sortByComparator(ComparatorType const &comparator=ComparatorType())
Definition: ConstRefVector.h:754
ContainerType::const_reference const_reference
Definition: ConstRefVector.h:345
void sortByIntensity(bool reverse=false)
Sorting.
Definition: ConstRefVector.h:720
ReverseIterator reverse_iterator
Definition: ConstRefVector.h:349
size_type max_size() const
See std::vector documentation.
Definition: ConstRefVector.h:392
const ContainerType * base_container_ptr_
Pointer to the base container.
Definition: ConstRefVector.h:770
ReverseIterator rend()
See std::vector documentation.
Definition: ConstRefVector.h:428
bool operator>=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:539
Iterator end()
See std::vector documentation.
Definition: ConstRefVector.h:404
void assign(size_type n, const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:704
ContainerType::difference_type difference_type
Definition: ConstRefVector.h:343
const_reference operator[](size_type n) const
See std::vector documentation.
Definition: ConstRefVector.h:484
void clear()
See std::vector documentation.
Definition: ConstRefVector.h:472
size_type capacity() const
See std::vector documentation.
Definition: ConstRefVector.h:374
ConstIterator begin() const
See std::vector documentation.
Definition: ConstRefVector.h:410
~ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:671
ContainerType::size_type size_type
Definition: ConstRefVector.h:342
bool operator<=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:533
void push_back(const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:355
ReverseIterator rbegin()
See std::vector documentation.
Definition: ConstRefVector.h:422
void insert(Iterator pos, size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:565
ContainerT ContainerType
Type definitions.
Definition: ConstRefVector.h:330
std::reverse_iterator< ConstIterator > ConstReverseIterator
Definition: ConstRefVector.h:336
void swap(ConstRefVector &array)
See std::vector documentation.
Definition: ConstRefVector.h:545
ConstRefVectorConstIterator< const ValueType > ConstIterator
Definition: ConstRefVector.h:334
void resize(size_type new_size, const ValueType &t)
See std::vector documentation.
Definition: ConstRefVector.h:453
bool operator==(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:490
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
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:256
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:207
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:563