Poco::Dynamic

class VarIterator

Library: Foundation
Package: Dynamic
Header: Poco/Dynamic/VarIterator.h

Description

VarIterator class.

Member Summary

Member Functions: operator !=, operator *, operator +, operator ++, operator -, operator --, operator =, operator ==, operator->, swap

Types

difference_type

typedef std::ptrdiff_t difference_type;

iterator_category

typedef std::bidirectional_iterator_tag iterator_category;

pointer

typedef Var * pointer;

reference

typedef Var & reference;

value_type

typedef Var value_type;

Constructors

VarIterator

VarIterator(
    const VarIterator & other
);

Creates a copy of other VarIterator.

VarIterator

VarIterator(
    Var * pVar,
    bool positionEnd
);

Creates the VarIterator and positions it at the end of the recordset if positionEnd is true. Otherwise, it is positioned at the beginning.

Destructor

~VarIterator

~VarIterator();

Destroys the VarIterator.

Member Functions

operator != inline

bool operator != (
    const VarIterator & other
) const;

Inequality operator.

operator *

Var & operator * () const;

Returns value at the current position.

operator +

VarIterator operator + (
    std::size_t diff
) const;

Returns a copy the VarIterator advanced by diff positions.

operator ++

const VarIterator & operator ++ () const;

Advances by one position and returns current position.

operator ++

VarIterator operator ++ (
    int
) const;

Advances by one position and returns copy of the iterator with previous current position.

operator -

VarIterator operator - (
    std::size_t diff
) const;

Returns a copy the VarIterator backed by diff positions. Throws RangeException if diff is larger than current position.

operator --

const VarIterator & operator -- () const;

Goes back by one position and returns copy of the iterator with previous current position.

operator --

VarIterator operator -- (
    int
) const;

Goes back by one position and returns previous current position.

operator =

VarIterator & operator = (
    const VarIterator & other
);

Assigns the other VarIterator.

operator == inline

bool operator == (
    const VarIterator & other
) const;

Equality operator.

operator->

Var * operator-> () const;

Returns pointer to the value at current position.

swap

void swap(
    VarIterator & other
);

Swaps the VarIterator with another one.

Variables

POSITION_END static

static const std::size_t POSITION_END;

End position indicator.