Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder is unveiled in second revision

In 2014 year PHP DOM Builder library was unveiled at the first time within the framework of Baigudin Software project. Two years have been left after that moment and today we are glad to offer the second generation that is PHP DOM Builder Revision 2.

Interface «api::Iterator<Type>»

Iterator interface.

Parameters:
Type — data type of iterator element.

public: virtual ~Iterator();

Destructor.

public: virtual bool hasNext() const;

Tests if this iteration may return a next element.

Returns:
true if next element is had.

public: virtual Type illegal() const;

Returns illegal element which will be returned as error value.

Returns:
illegal element.

public: virtual void illegal(const Type value);

Sets illegal element which will be returned as error value.

Parameters:
value — illegal value.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

Returns:
true if object has been constructed successfully.

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

Tests if given value is an illegal.

Parameters:
value — testing value.
true — if value is an illegal.

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

Tests if given object has been constructed object.

Parameters:
obj — pointer to object.

Returns:
true if object has been constructed successfully.

public: virtual Type next();

Returns next element and advances the cursor position.

Returns:
reference to element.

public: virtual bool remove();

Removes the last element returned by this iterator.

Returns:
true if an element is removed successfully.

Back to class list