|
OpenMS
2.5.0
|
Go to the documentation of this file.
69 template <
typename ContainerT>
75 template <
class ValueT>
94 vector_ = (
typename std::vector<ValueType*>*)vec;
115 if (
this == &rhs)
return *
this;
235 template <
class ValueT>
367 typedef typename ContainerType::pointer
pointer;
421 return Iterator((std::vector<const ValueType*>*) &
vector_, (
unsigned int)0);
589 std::vector<const ValueType*> tmp;
599 template <
class InputIterator>
603 std::vector<const ValueType*> tmp;
604 for (InputIterator it = f; it != l; ++it)
640 vector_ = std::vector<const ValueType*>(n);
648 vector_ = std::vector<const ValueType*>(n, &element);
665 template <
class InputIterator>
671 for (InputIterator it = f; it != l; ++it)
684 for (
typename ContainerType::iterator it = p.begin(); it != p.end(); ++it)
701 if (
this == &rhs)
return *
this;
717 template <
class InputIterator>
718 void assign(InputIterator f, InputIterator l)
774 template <
typename ComparatorType>
ConstRefVectorConstIterator(const typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:92
bool operator==(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:143
ConstReverseIterator rbegin() const
See std::vector documentation.
Definition: ConstRefVector.h:455
ContainerType::size_type size_type
Definition: ConstRefVector.h:363
ConstReverseIterator const_reverse_iterator
Definition: ConstRefVector.h:371
ValueT ValueType
Definition: ConstRefVector.h:81
Iterator end()
See std::vector documentation.
Definition: ConstRefVector.h:425
friend difference_type operator-(const ConstRefVectorConstIterator &i1, const ConstRefVectorConstIterator &i2)
Definition: ConstRefVector.h:205
ConstRefVectorIterator()
Definition: ConstRefVector.h:251
ConstRefVectorIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:255
unsigned int position_
Definition: ConstRefVector.h:230
ConstRefVectorIterator & operator+=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:326
ConstRefVectorConstIterator operator++(int)
Definition: ConstRefVector.h:159
ConstRefVector(const ConstRefVector &p)
See std::vector documentation.
Definition: ConstRefVector.h:652
void sortByPosition()
Lexicographically sorts the elements by their position.
Definition: ConstRefVector.h:754
ConstIterator begin() const
See std::vector documentation.
Definition: ConstRefVector.h:431
ConstRefVectorConstIterator< ValueType >::value_type * pointer
Definition: ConstRefVector.h:245
ConstIterator const_iterator
Definition: ConstRefVector.h:369
ReverseIterator rbegin()
See std::vector documentation.
Definition: ConstRefVector.h:443
std::reverse_iterator< ConstIterator > ConstReverseIterator
Definition: ConstRefVector.h:357
ConstReverseIterator rend() const
See std::vector documentation.
Definition: ConstRefVector.h:461
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
ConstRefVectorConstIterator()
Definition: ConstRefVector.h:88
ValueT ValueType
Definition: ConstRefVector.h:243
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
ConstRefVectorIterator operator-(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:305
ConstRefVector(size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:644
Mutable iterator for the ConstRefVector.
Definition: ConstRefVector.h:236
const_reference operator[](size_type n) const
See std::vector documentation.
Definition: ConstRefVector.h:505
reference operator*() const
Definition: ConstRefVector.h:217
ConstRefVectorIterator operator--(int)
Definition: ConstRefVector.h:298
void insert(Iterator pos, InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:600
ConstRefVectorConstIterator operator--(int)
Definition: ConstRefVector.h:172
bool operator<=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:554
ConstRefVector & operator=(const ConstRefVector &rhs)
See std::vector documentation.
Definition: ConstRefVector.h:699
const_reference back() const
See std::vector documentation.
Definition: ConstRefVector.h:487
Iterator begin()
See std::vector documentation.
Definition: ConstRefVector.h:419
Iterator erase(Iterator pos)
See std::vector documentation.
Definition: ConstRefVector.h:613
bool operator<(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:542
bool empty() const
See std::vector documentation.
Definition: ConstRefVector.h:499
ConstRefVectorIterator & operator--()
Definition: ConstRefVector.h:292
bool operator<=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:133
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void swap(ConstRefVector &array)
See std::vector documentation.
Definition: ConstRefVector.h:566
friend ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n, const ConstRefVectorIterator &i)
Definition: ConstRefVector.h:319
ConstRefVectorConstIterator & operator-=(difference_type n)
Definition: ConstRefVector.h:199
void resize(size_type new_size, const ValueType &t)
See std::vector documentation.
Definition: ConstRefVector.h:474
size_type capacity() const
See std::vector documentation.
Definition: ConstRefVector.h:395
void pop_back()
See std::vector documentation.
Definition: ConstRefVector.h:383
ConstRefVectorConstIterator(typename std::vector< ValueType * > *vec, unsigned int position)
Definition: ConstRefVector.h:98
ConstRefVectorConstIterator & operator++()
Definition: ConstRefVector.h:153
ConstRefVectorIterator & operator-=(typename ConstRefVectorIterator::difference_type n)
Definition: ConstRefVector.h:332
bool operator<(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:123
friend void swap(ConstRefVector &a1, ConstRefVector &a2)
See std::vector documentation.
Definition: ConstRefVector.h:572
ConstRefVector(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:636
void reserve(size_type n)
See std::vector documentation.
Definition: ConstRefVector.h:401
ReverseIterator reverse_iterator
Definition: ConstRefVector.h:370
ConstRefVectorIterator operator+(typename ConstRefVectorIterator::difference_type n) const
Definition: ConstRefVector.h:312
const ContainerType * base_container_ptr_
Pointer to the base container.
Definition: ConstRefVector.h:791
ContainerType::value_type ValueType
Definition: ConstRefVector.h:353
ConstRefVector(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:666
ContainerType::reference reference
Definition: ConstRefVector.h:365
void assign(size_type n, const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:725
const typedef value_type & reference
Definition: ConstRefVector.h:84
std::reverse_iterator< Iterator > ReverseIterator
Definition: ConstRefVector.h:356
ConstRefVectorConstIterator & operator=(const ConstRefVectorConstIterator &rhs)
Definition: ConstRefVector.h:113
friend void swap(ConstRefVectorIterator &i1, ConstRefVectorIterator &i2)
Definition: ConstRefVector.h:338
std::vector< ValueType * > * vector_
Definition: ConstRefVector.h:229
ContainerType::pointer pointer
Definition: ConstRefVector.h:367
ConstRefVectorConstIterator operator+(difference_type n) const
Definition: ConstRefVector.h:186
void clear()
See std::vector documentation.
Definition: ConstRefVector.h:493
bool operator>(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:128
bool operator!=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:148
ConstRefVectorIterator(const ConstRefVectorIterator< ValueType > &it)
Definition: ConstRefVector.h:260
ConstRefVectorIterator & operator++()
Definition: ConstRefVector.h:279
ConstRefVectorIterator< const ValueType > Iterator
Definition: ConstRefVector.h:354
bool operator>=(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:560
std::vector< ValueType * >::difference_type difference_type
Definition: ConstRefVector.h:83
pointer operator->() const
Definition: ConstRefVector.h:274
Iterator insert(Iterator pos, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:578
ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:629
This vector holds pointer to the elements of another container.
Definition: ConstRefVector.h:70
friend ConstRefVectorConstIterator operator+(difference_type n, const ConstRefVectorConstIterator &i)
Definition: ConstRefVector.h:210
ValueType value_type
Definition: ConstRefVector.h:82
ConstRefVectorConstIterator operator-(difference_type n) const
Definition: ConstRefVector.h:179
void sortByIntensity(bool reverse=false)
Sorting.
Definition: ConstRefVector.h:741
size_type size() const
See std::vector documentation.
Definition: ConstRefVector.h:389
std::vector< const ValueType * > vector_
the internal vector of ValueType pointers
Definition: ConstRefVector.h:787
bool operator==(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:511
~ConstRefVectorIterator()
Definition: ConstRefVector.h:265
void resize(size_type new_size)
See std::vector documentation.
Definition: ConstRefVector.h:467
ConstRefVectorIterator operator++(int)
Definition: ConstRefVector.h:285
void insert(Iterator pos, size_type n, const ValueType &element)
See std::vector documentation.
Definition: ConstRefVector.h:586
ConstRefVectorConstIterator & operator--()
Definition: ConstRefVector.h:166
void sortByComparator(ComparatorType const &comparator=ComparatorType())
Definition: ConstRefVector.h:775
ConstRefVectorConstIterator(const ConstRefVectorConstIterator &it)
Definition: ConstRefVector.h:104
Iterator iterator
Definition: ConstRefVector.h:368
const_reference front() const
See std::vector documentation.
Definition: ConstRefVector.h:481
std::random_access_iterator_tag iterator_category
Definition: ConstRefVector.h:86
bool operator>(const ConstRefVector &array) const
Comparison of container sizes.
Definition: ConstRefVector.h:548
~ConstRefVector()
See std::vector documentation.
Definition: ConstRefVector.h:692
ContainerType::difference_type difference_type
Definition: ConstRefVector.h:364
void assign(InputIterator f, InputIterator l)
See std::vector documentation.
Definition: ConstRefVector.h:718
ConstRefVectorConstIterator< const ValueType > ConstIterator
Definition: ConstRefVector.h:355
ConstIterator end() const
See std::vector documentation.
Definition: ConstRefVector.h:437
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
ConstIterator for the ConstRefVector.
Definition: ConstRefVector.h:76
Iterator erase(Iterator first, Iterator last)
See std::vector documentation.
Definition: ConstRefVector.h:620
size_type max_size() const
See std::vector documentation.
Definition: ConstRefVector.h:413
reference operator*() const
Definition: ConstRefVector.h:269
ConstRefVectorConstIterator & operator+=(difference_type n)
Definition: ConstRefVector.h:193
ConstRefVector(ContainerType &p)
See std::vector documentation.
Definition: ConstRefVector.h:679
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
pointer operator->() const
Definition: ConstRefVector.h:222
void push_back(const ValueType &x)
See std::vector documentation.
Definition: ConstRefVector.h:376
bool operator!=(const ConstRefVector &array) const
See std::vector documentation.
Definition: ConstRefVector.h:536
ContainerT ContainerType
Type definitions.
Definition: ConstRefVector.h:351
~ConstRefVectorConstIterator()
Definition: ConstRefVector.h:110
size_type capacity_
the current capacity
Definition: ConstRefVector.h:789
ContainerType::const_reference const_reference
Definition: ConstRefVector.h:366
bool operator>=(const ConstRefVectorConstIterator &it) const
Definition: ConstRefVector.h:138
ReverseIterator rend()
See std::vector documentation.
Definition: ConstRefVector.h:449
ConstRefVectorConstIterator< ValueType >::value_type & reference
Definition: ConstRefVector.h:244
ValueType value_type
STL-compliance type definitions.
Definition: ConstRefVector.h:362
const typedef value_type * pointer
Definition: ConstRefVector.h:85