|
@@ -105,11 +105,11 @@ public:
|
|
|
///
|
|
|
/// It behaves like a \c std::iterator forward iterator, so please
|
|
|
/// see its documentation for usage.
|
|
|
- class iterator : std::iterator<std::forward_iterator_tag,
|
|
|
+ class Iterator : std::iterator<std::forward_iterator_tag,
|
|
|
const isc::dns::AbstractRRset>
|
|
|
{
|
|
|
public:
|
|
|
- explicit iterator(IterPtr iter) :
|
|
|
+ explicit Iterator(IterPtr iter) :
|
|
|
iter_(iter)
|
|
|
{}
|
|
|
|
|
@@ -117,22 +117,22 @@ public:
|
|
|
return (iter_->getValue());
|
|
|
}
|
|
|
|
|
|
- iterator& operator++() {
|
|
|
+ Iterator& operator++() {
|
|
|
iter_ = iter_->getNext();
|
|
|
return (*this);
|
|
|
}
|
|
|
|
|
|
- iterator operator++(int) {
|
|
|
- iterator tmp(iter_);
|
|
|
+ Iterator operator++(int) {
|
|
|
+ Iterator tmp(iter_);
|
|
|
++*this;
|
|
|
return (tmp);
|
|
|
}
|
|
|
|
|
|
- bool operator==(const iterator& other) const {
|
|
|
+ bool operator==(const Iterator& other) const {
|
|
|
return (iter_->equals(*other.iter_));
|
|
|
}
|
|
|
|
|
|
- bool operator!=(const iterator& other) const {
|
|
|
+ bool operator!=(const Iterator& other) const {
|
|
|
return (!iter_->equals(*other.iter_));
|
|
|
}
|
|
|
|
|
@@ -142,14 +142,14 @@ public:
|
|
|
|
|
|
/// \brief Returns an iterator pointing to the beginning of the
|
|
|
/// collection.
|
|
|
- iterator begin() {
|
|
|
- return iterator(getBeginning());
|
|
|
+ Iterator begin() {
|
|
|
+ return Iterator(getBeginning());
|
|
|
}
|
|
|
|
|
|
/// \brief Returns an iterator pointing past the end of the
|
|
|
/// collection.
|
|
|
- iterator end() {
|
|
|
- return iterator(getEnd());
|
|
|
+ Iterator end() {
|
|
|
+ return Iterator(getEnd());
|
|
|
}
|
|
|
};
|
|
|
|