42 template <
typename ContainerT>
48 template <
class ValueT>
71 vector_ = (
typename std::vector<ValueType*>*)vec;
193 template <
class ValueT>
319 typedef typename ContainerType::pointer
pointer;
373 return Iterator((std::vector<const ValueType*>*) &
vector_, (
unsigned int)0);
541 std::vector<const ValueType*> tmp;
551 template <
class InputIterator>
555 std::vector<const ValueType*> tmp;
556 for (InputIterator it = f; it != l; ++it)
592 vector_ = std::vector<const ValueType*>(n);
600 vector_ = std::vector<const ValueType*>(n, &element);
617 template <
class InputIterator>
623 for (InputIterator it = f; it != l; ++it)
636 for (
typename ContainerType::iterator it = p.begin(); it != p.end(); ++it)
653 if (
this == &rhs)
return *
this;
669 template <
class InputIterator>
670 void assign(InputIterator f, InputIterator l)
697 auto pointerCmp = [](
auto& left,
auto& right){
typename ValueType::IntensityLess cmp;
return cmp(*left, *right);};
698 std::sort(
vector_.begin(),
vector_.end(), [&](
auto &left,
auto &right) {return pointerCmp(right, left);});
702 std::sort(
vector_.begin(),
vector_.end(), [](
auto& left,
auto& right){typename ValueType::IntensityLess cmp; return cmp(*left, *right);});
709 std::sort(
vector_.begin(),
vector_.end(), [](
auto& left,
auto& right){typename ValueType::PositionLess cmp; return cmp(*left, *right);});
727 template <
typename ComparatorType>
730 std::sort(
vector_.begin(),
vector_.end(), [&](
auto& left,
auto& right){return comparator(*left, *right);});
ConstIterator for the ConstRefVector.
Definition: ConstRefVector.h:50
ValueT ValueType
Definition: ConstRefVector.h:54
ConstRefVectorConstIterator & operator++()
Definition: ConstRefVector.h:111
ConstRefVectorConstIterator operator--(int)
Definition: ConstRefVector.h:130
ConstRefVectorConstIterator & operator+=(difference_type n)
Definition: ConstRefVector.h:151
ConstRefVectorConstIterator operator++(int)
Definition: ConstRefVector.h:117
bool operator<=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:91
std::random_access_iterator_tag iterator_category
Definition: ConstRefVector.h:59
ConstRefVectorConstIterator operator+(difference_type n) const
Definition: ConstRefVector.h:144
bool operator>(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:86
ValueType value_type
Definition: ConstRefVector.h:55
std::vector< ValueType * > * vector_
Definition: ConstRefVector.h:187
~ConstRefVectorConstIterator()=default
unsigned int position_
Definition: ConstRefVector.h:188
ConstRefVectorConstIterator & operator-=(difference_type n)
Definition: ConstRefVector.h:157
ConstRefVectorConstIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:75
ConstRefVectorConstIterator & operator=(const ConstRefVectorConstIterator &)=default
const value_type & reference
Definition: ConstRefVector.h:57
reference operator*() const
Definition: ConstRefVector.h:175
ConstRefVectorConstIterator(const typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:69
bool operator<(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:81
ConstRefVectorConstIterator & operator--()
Definition: ConstRefVector.h:124
friend ConstRefVectorConstIterator operator+(difference_type n, const ConstRefVectorConstIterator &i)
Definition: ConstRefVector.h:168
const value_type * pointer
Definition: ConstRefVector.h:58
ConstRefVectorConstIterator operator-(difference_type n) const
Definition: ConstRefVector.h:137
ConstRefVectorConstIterator()=default
bool operator>=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:96
ConstRefVectorConstIterator(const ConstRefVectorConstIterator &)=default
std::vector< ValueType * >::difference_type difference_type
Definition: ConstRefVector.h:56
bool operator!=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:106
pointer operator->() const
Definition: ConstRefVector.h:180
bool operator==(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:101
friend difference_type operator-(const ConstRefVectorConstIterator &i1, const ConstRefVectorConstIterator &i2)
Definition: ConstRefVector.h:163
Mutable iterator for the ConstRefVector.
Definition: ConstRefVector.h:196
ConstRefVectorIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:212
ConstRefVectorIterator operator--(int)
Definition: ConstRefVector.h:250
ValueT ValueType
Definition: ConstRefVector.h:201
ConstRefVectorIterator operator++(int)
Definition: ConstRefVector.h:237
ConstRefVectorIterator(const ConstRefVectorIterator &)=default
ConstRefVectorIterator & operator++()
Definition: ConstRefVector.h:231
ConstRefVectorIterator & operator+=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:278
~ConstRefVectorIterator()=default
friend void swap(ConstRefVectorIterator &i1, ConstRefVectorIterator &i2)
Definition: ConstRefVector.h:290
ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:264
ConstRefVectorIterator & operator--()
Definition: ConstRefVector.h:244
ConstRefVectorIterator & operator-=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:284
ConstRefVectorIterator & operator=(const ConstRefVectorIterator &rhs)=default
ConstRefVectorIterator operator-(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:257
reference operator*() const
Definition: ConstRefVector.h:221
ConstRefVectorConstIterator< ValueType >::value_type * pointer
Definition: ConstRefVector.h:203
ConstRefVectorIterator()=default
friend ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n, const ConstRefVectorIterator &i)
Definition: ConstRefVector.h:271
pointer operator->() const
Definition: ConstRefVector.h:226
ConstRefVectorConstIterator< ValueType >::value_type & reference
Definition: ConstRefVector.h:202
This vector holds pointer to the elements of another container.
Definition: ConstRefVector.h:44
friend void swap(ConstRefVector &a1, ConstRefVector &a2)
See std::vector documentation.
Definition: ConstRefVector.h:524
ConstRefVector(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:618
void pop_back()
See std::vector documentation.
Definition: ConstRefVector.h:335
ConstReverseIterator const_reverse_iterator
Definition: ConstRefVector.h:323
void insert(Iterator pos, InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:552
std::vector< const ValueType * > vector_
the internal vector of ValueType pointers
Definition: ConstRefVector.h:740
const_reference front() const
See std::vector documentation.
Definition: ConstRefVector.h:433
ConstRefVector(ContainerType &p)
See std::vector documentation.
Definition: ConstRefVector.h:631
ConstRefVector(const ConstRefVector &p)
See std::vector documentation.
Definition: ConstRefVector.h:604
ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:581
Iterator begin()
See std::vector documentation.
Definition: ConstRefVector.h:371
Iterator iterator
Definition: ConstRefVector.h:320
ConstRefVector(size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:596
ContainerType::reference reference
Definition: ConstRefVector.h:317
ContainerType::pointer pointer
Definition: ConstRefVector.h:319
std::reverse_iterator< Iterator > ReverseIterator
Definition: ConstRefVector.h:308
bool operator!=(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:488
Iterator erase(Iterator pos)
See std::vector documentation.
Definition: ConstRefVector.h:565
ConstRefVector & operator=(const ConstRefVector &rhs)
See std::vector documentation.
Definition: ConstRefVector.h:651
ConstReverseIterator rend() const
See std::vector documentation.
Definition: ConstRefVector.h:413
void resize(size_type new_size)
See std::vector documentation.
Definition: ConstRefVector.h:419
void reserve(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:353
ConstIterator const_iterator
Definition: ConstRefVector.h:321
void assign(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:670
size_type size() const
See std::vector documentation.
Definition: ConstRefVector.h:341
const_reference back() const
See std::vector documentation.
Definition: ConstRefVector.h:439
bool empty() const
See std::vector documentation.
Definition: ConstRefVector.h:451
Iterator erase(Iterator first, Iterator last)
See std::vector documentation.
Definition: ConstRefVector.h:572
ConstRefVector(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:588
bool operator<(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:494
Iterator insert(Iterator pos, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:530
ConstIterator end() const
See std::vector documentation.
Definition: ConstRefVector.h:389
bool operator>(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:500
size_type capacity_
the current capacity
Definition: ConstRefVector.h:742
ConstRefVectorIterator< const ValueType > Iterator
Definition: ConstRefVector.h:306
ContainerType::value_type ValueType
Definition: ConstRefVector.h:305
ValueType value_type
STL-compliance type definitions.
Definition: ConstRefVector.h:314
void sortByPosition()
Lexicographically sorts the elements by their position.
Definition: ConstRefVector.h:707
ConstReverseIterator rbegin() const
See std::vector documentation.
Definition: ConstRefVector.h:407
void sortByComparator(ComparatorType const &comparator=ComparatorType())
Definition: ConstRefVector.h:728
ContainerType::const_reference const_reference
Definition: ConstRefVector.h:318
void sortByIntensity(bool reverse=false)
Sorting.
Definition: ConstRefVector.h:693
ReverseIterator reverse_iterator
Definition: ConstRefVector.h:322
size_type max_size() const
See std::vector documentation.
Definition: ConstRefVector.h:365
const ContainerType * base_container_ptr_
Pointer to the base container.
Definition: ConstRefVector.h:744
ReverseIterator rend()
See std::vector documentation.
Definition: ConstRefVector.h:401
bool operator>=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:512
Iterator end()
See std::vector documentation.
Definition: ConstRefVector.h:377
void assign(size_type n, const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:677
ContainerType::difference_type difference_type
Definition: ConstRefVector.h:316
const_reference operator[](size_type n) const
See std::vector documentation.
Definition: ConstRefVector.h:457
void clear()
See std::vector documentation.
Definition: ConstRefVector.h:445
size_type capacity() const
See std::vector documentation.
Definition: ConstRefVector.h:347
ConstIterator begin() const
See std::vector documentation.
Definition: ConstRefVector.h:383
~ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:644
ContainerType::size_type size_type
Definition: ConstRefVector.h:315
bool operator<=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:506
void push_back(const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:328
ReverseIterator rbegin()
See std::vector documentation.
Definition: ConstRefVector.h:395
void insert(Iterator pos, size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:538
ContainerT ContainerType
Type definitions.
Definition: ConstRefVector.h:303
std::reverse_iterator< ConstIterator > ConstReverseIterator
Definition: ConstRefVector.h:309
void swap(ConstRefVector &array)
See std::vector documentation.
Definition: ConstRefVector.h:518
ConstRefVectorConstIterator< const ValueType > ConstIterator
Definition: ConstRefVector.h:307
void resize(size_type new_size, const ValueType &t)
See std::vector documentation.
Definition: ConstRefVector.h:426
bool operator==(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:463
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
static String & reverse(String &this_s)
Definition: StringUtilsSimple.h:330
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22