68 template <
typename ContainerT>
74 template <
class ValueT>
97 vector_ = (
typename std::vector<ValueType*>*)vec;
219 template <
class ValueT>
345 typedef typename ContainerType::pointer
pointer;
399 return Iterator((std::vector<const ValueType*>*) &
vector_, (
unsigned int)0);
567 std::vector<const ValueType*> tmp;
577 template <
class InputIterator>
581 std::vector<const ValueType*> tmp;
582 for (InputIterator it = f; it != l; ++it)
618 vector_ = std::vector<const ValueType*>(n);
626 vector_ = std::vector<const ValueType*>(n, &element);
643 template <
class InputIterator>
649 for (InputIterator it = f; it != l; ++it)
662 for (
typename ContainerType::iterator it = p.begin(); it != p.end(); ++it)
679 if (
this == &rhs)
return *
this;
695 template <
class InputIterator>
696 void assign(InputIterator f, InputIterator l)
723 auto pointerCmp = [](
auto& left,
auto& right){
typename ValueType::IntensityLess cmp;
return cmp(*left, *right);};
724 std::sort(
vector_.begin(),
vector_.end(), [&](
auto &left,
auto &right) {return pointerCmp(right, left);});
728 std::sort(
vector_.begin(),
vector_.end(), [](
auto& left,
auto& right){typename ValueType::IntensityLess cmp; return cmp(*left, *right);});
735 std::sort(
vector_.begin(),
vector_.end(), [](
auto& left,
auto& right){typename ValueType::PositionLess cmp; return cmp(*left, *right);});
753 template <
typename ComparatorType>
756 std::sort(
vector_.begin(),
vector_.end(), [&](
auto& left,
auto& right){return comparator(*left, *right);});
ConstIterator for the ConstRefVector.
Definition: ConstRefVector.h:76
ValueT ValueType
Definition: ConstRefVector.h:80
ConstRefVectorConstIterator & operator++()
Definition: ConstRefVector.h:137
ConstRefVectorConstIterator operator--(int)
Definition: ConstRefVector.h:156
ConstRefVectorConstIterator & operator+=(difference_type n)
Definition: ConstRefVector.h:177
ConstRefVectorConstIterator operator++(int)
Definition: ConstRefVector.h:143
bool operator<=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:117
std::random_access_iterator_tag iterator_category
Definition: ConstRefVector.h:85
ConstRefVectorConstIterator operator+(difference_type n) const
Definition: ConstRefVector.h:170
bool operator>(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:112
ValueType value_type
Definition: ConstRefVector.h:81
std::vector< ValueType * > * vector_
Definition: ConstRefVector.h:213
~ConstRefVectorConstIterator()=default
unsigned int position_
Definition: ConstRefVector.h:214
ConstRefVectorConstIterator & operator-=(difference_type n)
Definition: ConstRefVector.h:183
ConstRefVectorConstIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:101
ConstRefVectorConstIterator & operator=(const ConstRefVectorConstIterator &)=default
const value_type & reference
Definition: ConstRefVector.h:83
reference operator*() const
Definition: ConstRefVector.h:201
ConstRefVectorConstIterator(const typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:95
bool operator<(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:107
ConstRefVectorConstIterator & operator--()
Definition: ConstRefVector.h:150
friend ConstRefVectorConstIterator operator+(difference_type n, const ConstRefVectorConstIterator &i)
Definition: ConstRefVector.h:194
const value_type * pointer
Definition: ConstRefVector.h:84
ConstRefVectorConstIterator operator-(difference_type n) const
Definition: ConstRefVector.h:163
ConstRefVectorConstIterator()=default
bool operator>=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:122
ConstRefVectorConstIterator(const ConstRefVectorConstIterator &)=default
std::vector< ValueType * >::difference_type difference_type
Definition: ConstRefVector.h:82
bool operator!=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:132
pointer operator->() const
Definition: ConstRefVector.h:206
bool operator==(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:127
friend difference_type operator-(const ConstRefVectorConstIterator &i1, const ConstRefVectorConstIterator &i2)
Definition: ConstRefVector.h:189
Mutable iterator for the ConstRefVector.
Definition: ConstRefVector.h:222
ConstRefVectorIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:238
ConstRefVectorIterator operator--(int)
Definition: ConstRefVector.h:276
ValueT ValueType
Definition: ConstRefVector.h:227
ConstRefVectorIterator operator++(int)
Definition: ConstRefVector.h:263
ConstRefVectorIterator(const ConstRefVectorIterator &)=default
ConstRefVectorIterator & operator++()
Definition: ConstRefVector.h:257
ConstRefVectorIterator & operator+=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:304
~ConstRefVectorIterator()=default
friend void swap(ConstRefVectorIterator &i1, ConstRefVectorIterator &i2)
Definition: ConstRefVector.h:316
ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:290
ConstRefVectorIterator & operator--()
Definition: ConstRefVector.h:270
ConstRefVectorIterator & operator-=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:310
ConstRefVectorIterator & operator=(const ConstRefVectorIterator &rhs)=default
ConstRefVectorIterator operator-(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:283
reference operator*() const
Definition: ConstRefVector.h:247
ConstRefVectorConstIterator< ValueType >::value_type * pointer
Definition: ConstRefVector.h:229
ConstRefVectorIterator()=default
friend ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n, const ConstRefVectorIterator &i)
Definition: ConstRefVector.h:297
pointer operator->() const
Definition: ConstRefVector.h:252
ConstRefVectorConstIterator< ValueType >::value_type & reference
Definition: ConstRefVector.h:228
This vector holds pointer to the elements of another container.
Definition: ConstRefVector.h:70
friend void swap(ConstRefVector &a1, ConstRefVector &a2)
See std::vector documentation.
Definition: ConstRefVector.h:550
ConstRefVector(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:644
void pop_back()
See std::vector documentation.
Definition: ConstRefVector.h:361
ConstReverseIterator const_reverse_iterator
Definition: ConstRefVector.h:349
void insert(Iterator pos, InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:578
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:459
ConstRefVector(ContainerType &p)
See std::vector documentation.
Definition: ConstRefVector.h:657
ConstRefVector(const ConstRefVector &p)
See std::vector documentation.
Definition: ConstRefVector.h:630
ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:607
Iterator begin()
See std::vector documentation.
Definition: ConstRefVector.h:397
Iterator iterator
Definition: ConstRefVector.h:346
ConstRefVector(size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:622
ContainerType::reference reference
Definition: ConstRefVector.h:343
ContainerType::pointer pointer
Definition: ConstRefVector.h:345
std::reverse_iterator< Iterator > ReverseIterator
Definition: ConstRefVector.h:334
bool operator!=(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:514
Iterator erase(Iterator pos)
See std::vector documentation.
Definition: ConstRefVector.h:591
ConstRefVector & operator=(const ConstRefVector &rhs)
See std::vector documentation.
Definition: ConstRefVector.h:677
ConstReverseIterator rend() const
See std::vector documentation.
Definition: ConstRefVector.h:439
void resize(size_type new_size)
See std::vector documentation.
Definition: ConstRefVector.h:445
void reserve(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:379
ConstIterator const_iterator
Definition: ConstRefVector.h:347
void assign(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:696
size_type size() const
See std::vector documentation.
Definition: ConstRefVector.h:367
const_reference back() const
See std::vector documentation.
Definition: ConstRefVector.h:465
bool empty() const
See std::vector documentation.
Definition: ConstRefVector.h:477
Iterator erase(Iterator first, Iterator last)
See std::vector documentation.
Definition: ConstRefVector.h:598
ConstRefVector(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:614
bool operator<(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:520
Iterator insert(Iterator pos, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:556
ConstIterator end() const
See std::vector documentation.
Definition: ConstRefVector.h:415
bool operator>(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:526
size_type capacity_
the current capacity
Definition: ConstRefVector.h:768
ConstRefVectorIterator< const ValueType > Iterator
Definition: ConstRefVector.h:332
ContainerType::value_type ValueType
Definition: ConstRefVector.h:331
ValueType value_type
STL-compliance type definitions.
Definition: ConstRefVector.h:340
void sortByPosition()
Lexicographically sorts the elements by their position.
Definition: ConstRefVector.h:733
ConstReverseIterator rbegin() const
See std::vector documentation.
Definition: ConstRefVector.h:433
void sortByComparator(ComparatorType const &comparator=ComparatorType())
Definition: ConstRefVector.h:754
ContainerType::const_reference const_reference
Definition: ConstRefVector.h:344
void sortByIntensity(bool reverse=false)
Sorting.
Definition: ConstRefVector.h:719
ReverseIterator reverse_iterator
Definition: ConstRefVector.h:348
size_type max_size() const
See std::vector documentation.
Definition: ConstRefVector.h:391
const ContainerType * base_container_ptr_
Pointer to the base container.
Definition: ConstRefVector.h:770
ReverseIterator rend()
See std::vector documentation.
Definition: ConstRefVector.h:427
bool operator>=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:538
Iterator end()
See std::vector documentation.
Definition: ConstRefVector.h:403
void assign(size_type n, const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:703
ContainerType::difference_type difference_type
Definition: ConstRefVector.h:342
const_reference operator[](size_type n) const
See std::vector documentation.
Definition: ConstRefVector.h:483
void clear()
See std::vector documentation.
Definition: ConstRefVector.h:471
size_type capacity() const
See std::vector documentation.
Definition: ConstRefVector.h:373
ConstIterator begin() const
See std::vector documentation.
Definition: ConstRefVector.h:409
~ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:670
ContainerType::size_type size_type
Definition: ConstRefVector.h:341
bool operator<=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:532
void push_back(const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:354
ReverseIterator rbegin()
See std::vector documentation.
Definition: ConstRefVector.h:421
void insert(Iterator pos, size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:564
ContainerT ContainerType
Type definitions.
Definition: ConstRefVector.h:329
std::reverse_iterator< ConstIterator > ConstReverseIterator
Definition: ConstRefVector.h:335
void swap(ConstRefVector &array)
See std::vector documentation.
Definition: ConstRefVector.h:544
ConstRefVectorConstIterator< const ValueType > ConstIterator
Definition: ConstRefVector.h:333
void resize(size_type new_size, const ValueType &t)
See std::vector documentation.
Definition: ConstRefVector.h:452
bool operator==(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:489
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static String & reverse(String &this_s)
Definition: StringUtilsSimple.h:350
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47