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