Class ConstReverseRowIterator

Synopsis

#include <orm_lib/inc/drogon/orm/RowIterator.h>

class ConstReverseRowIterator : private ConstRowIterator

Description

No description yet.

Inheritance

Ancestors: ConstRowIterator

Methods

ConstReverseRowIterator
base
operator!=
operator*
operator++
operator+=
operator--
operator-=
operator<
operator<=
operator==
operator>
operator>=

Source

Lines 105-178 in orm_lib/inc/drogon/orm/RowIterator.h. Line 106 in orm_lib/inc/drogon/orm/RowIterator.h.

class ConstReverseRowIterator : private ConstRowIterator
{
  public:
    using super = ConstRowIterator;
    using iterator_type = ConstRowIterator;
    using iterator_type::difference_type;
    using iterator_type::iterator_category;
    using iterator_type::pointer;
    using iterator_type::reference;
    // using iterator_type::value_type;

    ConstReverseRowIterator(const ConstReverseRowIterator &rhs)
        : ConstRowIterator(rhs)
    {
    }
    explicit ConstReverseRowIterator(const ConstRowIterator &rhs)
        : ConstRowIterator(rhs)
    {
        super::operator--();
    }

    ConstRowIterator base() const noexcept;

    using iterator_type::operator->;
    using iterator_type::operator*;

    ConstReverseRowIterator operator++(int);
    ConstReverseRowIterator &operator++()
    {
        iterator_type::operator--();
        return *this;
    }
    ConstReverseRowIterator operator--(int);
    ConstReverseRowIterator &operator--()
    {
        iterator_type::operator++();
        return *this;
    }
    ConstReverseRowIterator &operator+=(difference_type i)
    {
        iterator_type::operator-=(i);
        return *this;
    }
    ConstReverseRowIterator &operator-=(difference_type i)
    {
        iterator_type::operator+=(i);
        return *this;
    }

    bool operator==(const ConstReverseRowIterator &other) const
    {
        return column_ == other.column_;
    }
    bool operator!=(const ConstReverseRowIterator &other) const
    {
        return column_ != other.column_;
    }
    bool operator>(const ConstReverseRowIterator &other) const
    {
        return column_ < other.column_;
    }
    bool operator<(const ConstReverseRowIterator &other) const
    {
        return column_ > other.column_;
    }
    bool operator>=(const ConstReverseRowIterator &other) const
    {
        return column_ <= other.column_;
    }
    bool operator<=(const ConstReverseRowIterator &other) const
    {
        return column_ >= other.column_;
    }
};





Add Discussion as Guest

Log in to DocsForge