TZStack Class Reference

Implements a stack of interfaces. More...

Inheritance diagram for TZStack:

TZAbstractObject IZClonnable TInterfacedObject IZObject

List of all members.

Public Member Functions

IZInterface Clone ()
 Clones the instance of this object.
Boolean Equals (const IZInterface Value)
Integer GetCount ()
 Gets a count of the stored elements.
LongInt Hash ()
 Gets a unique hash for this object.
Boolean InstanceOf (const TGUID IId)
 Checks is this object implements a specified interface.
IZInterface Peek ()
 Gets an element from the top this stack without removing it.
IZInterface Pop ()
 Gets an element from the top this stack and remove it.
 Push (IZInterface Value)
 Puts a new element to the top of this stack.
string ToString ()
 Gets a string representation for this object.
 TZStack ()
 Constructs this object and assignes the main properties.
 ~TZStack ()
 Destroys this object and cleanups the memory.

Public Attributes

Integer Count

Private Member Functions

Boolean Equals (const IZInterface &Value)

Private Attributes

IZCollection FValues


Detailed Description

Implements a stack of interfaces.

Definition at line 392 of file ZCollections.pas.


Constructor & Destructor Documentation

TZStack::TZStack (  ) 

Constructs this object and assignes the main properties.

Definition at line 1489 of file ZCollections.pas.

TZStack::~TZStack (  ) 

Destroys this object and cleanups the memory.

Definition at line 1500 of file ZCollections.pas.


Member Function Documentation

IZInterface TZStack::Clone (  ) 

Clones the instance of this object.

Returns:
a reference to the clonned object.

Reimplemented from TZAbstractObject.

Definition at line 1513 of file ZCollections.pas.

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

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

Reimplemented in TZAnyValue.

Integer TZStack::GetCount (  ) 

Gets a count of the stored elements.

Returns:
an elements count.

Definition at line 1534 of file ZCollections.pas.

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 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 TZStack::Peek (  ) 

Gets an element from the top this stack without removing it.

Returns:
an element from the top of the stack.

Definition at line 1546 of file ZCollections.pas.

IZInterface TZStack::Pop (  ) 

Gets an element from the top this stack and remove it.

Returns:
an element from the top of the stack.

Definition at line 1560 of file ZCollections.pas.

TZStack::Push ( IZInterface  Value  ) 

Puts a new element to the top of this stack.

Parameters:
Value a new element to be put.

Definition at line 1575 of file ZCollections.pas.

string TZStack::ToString (  ) 

Gets a string representation for this object.

Reimplemented from TZAbstractObject.

Definition at line 1587 of file ZCollections.pas.


Member Data Documentation

Integer TZStack::Count

See also:
GetCount For reading

Definition at line 429 of file ZCollections.pas.

Definition at line 397 of file ZCollections.pas.


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

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