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

Inherits: Progress.Lang.Object
ABSTRACT

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 ()
Progress.Lang.Object ObjectPop ()
ObjectPush (Object)
Progress.Lang.Object ObjectToArray ()
LOGICAL PrimitiveContains (character)
CHARACTER PrimitivePeek ()
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 /* Keep incrementally growing stack Depth as new elements are added. This will negatively impact performance. */
INTEGER Depth
LOGICAL DiscardOnShrink /* If true, we'll discard stuff off the bottom of the stack if we resize the stack smaller than its contents. */
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 ()

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 ()

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

/* Keep incrementally growing stack Depth as new elements are added.
This will negatively impact performance.
Returns LOGICAL
Top

INTEGER Depth

Returns INTEGER
Top

LOGICAL DiscardOnShrink

/* If true, we'll discard stuff off the bottom of the stack if
we resize the stack smaller than its contents.
Returns LOGICAL
Top

INTEGER Size

Returns INTEGER


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7