TZIterator Class Reference

Implements an iterator for regular TZCollection collection. More...

Inheritance diagram for TZIterator:

TZAbstractObject IZIterator TInterfacedObject IZObject

List of all members.

Public Member Functions

IZInterface Clone ()
 Clones an object instance.
Boolean Equals (const IZInterface Value)
LongInt Hash ()
 Gets a unique hash for this object.
Boolean HasNext ()
 Checks has the iterated collection more elements.
Boolean InstanceOf (const TGUID IId)
 Checks is this object implements a specified interface.
IZInterface Next ()
 Gets a next iterated element from the collection.
string ToString ()
 Converts this object into the string representation.
 TZIterator (const IZCollection Col)
 Creates this iterator for the specified interface list.

Private Member Functions

Boolean Equals (const IZInterface &Value)

Private Attributes

IZCollection FCollection
Integer FCurrentIndex


Detailed Description

Implements an iterator for regular TZCollection collection.

Definition at line 64 of file ZCollections.pas.


Constructor & Destructor Documentation

TZIterator::TZIterator ( const IZCollection  Col  ) 

Creates this iterator for the specified interface list.

Parameters:
List a list of interfaces.

Definition at line 445 of file ZCollections.pas.


Member Function Documentation

IZInterface TZAbstractObject::Clone (  )  [inherited]

Clones an object instance.

Returns:
a clonned object instance.

Reimplemented from IZObject.

Reimplemented in TZCollection, TZUnmodifiableCollection, TZHashMap, TZStack, and TZAnyValue.

Definition at line 474 of file ZClasses.pas.

Boolean IZObject::Equals ( const IZInterface Value  )  [inherited]

Boolean TZAbstractObject::Equals ( const IZInterface  Value  )  [inherited]

Reimplemented in TZAnyValue.

LongInt TZAbstractObject::Hash (  )  [inherited]

Gets a unique hash for this object.

Returns:
a unique hash for this object.

Reimplemented from IZObject.

Definition at line 462 of file ZClasses.pas.

Boolean TZIterator::HasNext (  ) 

Checks has the iterated collection more elements.

Returns:
True if iterated collection has more elements.

Reimplemented from IZIterator.

Definition at line 459 of file ZCollections.pas.

References R.

Boolean TZAbstractObject::InstanceOf ( const TGUID  IId  )  [inherited]

Checks is this object implements a specified interface.

Parameters:
IId an interface id.
Returns:
True if this object support the interface.

Reimplemented from IZObject.

Definition at line 488 of file ZClasses.pas.

IZInterface TZIterator::Next (  ) 

Gets a next iterated element from the collection.

Returns:
a next iterated element from the collection or null if no more elements.

Reimplemented from IZIterator.

Definition at line 472 of file ZCollections.pas.

string TZAbstractObject::ToString (  )  [inherited]

Converts this object into the string representation.

Returns:
a string representation for this object.

Reimplemented from IZObject.

Reimplemented in TZCollection, TZUnmodifiableCollection, TZStack, and TZAnyValue.

Definition at line 501 of file ZClasses.pas.


Member Data Documentation

Definition at line 69 of file ZCollections.pas.

Integer TZIterator::FCurrentIndex [private]

Definition at line 71 of file ZCollections.pas.


The documentation for this class was generated from the following file:

Generated on Wed Dec 30 08:42:52 2009 for zeoslib by  doxygen 1.5.7.1