Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Iterator<Type>»

Iterator interface.

public: virtual ~Iterator();

Destructor.

public: virtual Type getIllegal() const;

Returns illegal element which will be returned as error value.

Returns:
illegal element.

public: virtual Type getNext();

Returns next element and advances the cursor position.

Returns:
reference to element.

public: virtual bool hasNext() const;

Tests if this iteration may return a next element.

Returns:
true if next element is had.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

public: virtual bool isIllegal(const Type& value) const;

Tests if given value is an illegal.

Parameters:
value — testing value.

Returns:
true if value is an illegal.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

public: virtual bool remove();

Removes the last element returned by this iterator.

Returns:
true if an element is removed successfully.

public: virtual void setIllegal(Type value);

Sets illegal element which will be returned as error value.

Parameters:
value — illegal value.

Back to class list