Namespace: OpenEdge.Core.Collections
Class
Stack
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object

Copyright (c) 2013 by Progress Software Corporation. All rights reserved.
File:Stack
Purpose:A stack is a last-in-first-out collection.
Author(s):pjudge
Created:Tue Jan 05 15:09:51 EST 2010
Notes:* Non-char primitive values will have their own IntegerStack() say,that calls PrimitivePush and
converts to/from character to their native datatype.
is dynamically constructed, but stacks need to be lightweight at runtime (IMO anyway).




Method Summary
Options Name Purpose
Progress.Lang.Object Clone ()
Invert ()
LOGICAL ObjectContains (Object)
Progress.Lang.Object ObjectPeek () /* Size should never be <= 0 but hey! ... */
Progress.Lang.Object ObjectPop ()
ObjectPush (Object)
Progress.Lang.Object ObjectToArray ()
LOGICAL PrimitiveContains (character)
CHARACTER PrimitivePeek () /* Size should never be < 0 but hey! ... */
CHARACTER PrimitivePop ()
PrimitivePush (character)
CHARACTER PrimitiveToArray ()
Rotate (integer)
SetStackDepth (integer)
Swap (integer, integer)

Constructor Summary
Options Name Purpose
Stack ()
Stack ()
Stack (character[])
Stack (integer)
Stack (Object[])

Property Summary
Options Name Purpose
LOGICAL AutoExpand
INTEGER Depth
LOGICAL DiscardOnShrink
INTEGER Size


Method Detail
Top

Progress.Lang.Object Clone ()

Returns Progress.Lang.Object
Top

Invert ()

Top

LOGICAL ObjectContains (Object)

Parameters:
poItem Progress.Lang.Object
Returns LOGICAL
Top

Progress.Lang.Object ObjectPeek ()

/* Size should never be <= 0 but hey! ...
Returns Progress.Lang.Object
Top

Progress.Lang.Object ObjectPop ()

Returns Progress.Lang.Object
Top

ObjectPush (Object)

Parameters:
poValue Progress.Lang.Object
Top

Progress.Lang.Object ObjectToArray ()

Returns Progress.Lang.Object
Top

LOGICAL PrimitiveContains (character)

Parameters:
pcItem CHARACTER
Returns LOGICAL
Top

CHARACTER PrimitivePeek ()

/* Size should never be < 0 but hey! ...
Returns CHARACTER
Top

CHARACTER PrimitivePop ()

Returns CHARACTER
Top

PrimitivePush (character)

Parameters:
pcValue CHARACTER
Top

CHARACTER PrimitiveToArray ()

Returns CHARACTER
Top

Rotate (integer)

Parameters:
piItems INTEGER
Top

SetStackDepth (integer)

Parameters:
piDepth INTEGER
Top

Swap (integer, integer)

Parameters:
piFromPos INTEGER
piToPos INTEGER


Constructor Detail
Top

STATIC Stack ()

Top

Stack ()

Top

Stack (character[])

Parameters:
pcArray CHARACTER
Top

Stack (integer)

Parameters:
piDepth INTEGER
Top

Stack (Object[])

Parameters:
poArray Progress.Lang.Object


Property Detail
Top

LOGICAL AutoExpand

Returns LOGICAL
Top

INTEGER Depth

Returns INTEGER
Top

LOGICAL DiscardOnShrink

Returns LOGICAL
Top

INTEGER Size

Returns INTEGER


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15