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

PUBLIC Progress.Lang.Object Clone ()

Returns Progress.Lang.Object
Top

PUBLIC Invert ()

Top

PROTECTED LOGICAL ObjectContains (Object)

Parameters:
poItem Progress.Lang.Object
Returns LOGICAL
Top

PROTECTED Progress.Lang.Object ObjectPeek ()

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

PROTECTED Progress.Lang.Object ObjectPop ()

Returns Progress.Lang.Object
Top

PROTECTED ObjectPush (Object)

Parameters:
poValue Progress.Lang.Object
Top

PROTECTED Progress.Lang.Object ObjectToArray ()

Returns Progress.Lang.Object
Top

PROTECTED LOGICAL PrimitiveContains (character)

Parameters:
pcItem CHARACTER
Returns LOGICAL
Top

PROTECTED CHARACTER PrimitivePeek ()

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

PROTECTED CHARACTER PrimitivePop ()

Returns CHARACTER
Top

PROTECTED PrimitivePush (character)

Parameters:
pcValue CHARACTER
Top

PROTECTED CHARACTER PrimitiveToArray ()

Returns CHARACTER
Top

PUBLIC Rotate (integer)

Parameters:
piItems INTEGER
Top

PRIVATE SetStackDepth (integer)

Parameters:
piDepth INTEGER
Top

PUBLIC Swap (integer, integer)

Parameters:
piFromPos INTEGER
piToPos INTEGER


Constructor Detail
Top

STATIC Stack ()

Top

PUBLIC Stack ()

Top

PROTECTED Stack (character[])

Parameters:
pcArray CHARACTER
Top

PUBLIC Stack (integer)

Parameters:
piDepth INTEGER
Top

PROTECTED Stack (Object[])

Parameters:
poArray Progress.Lang.Object


Property Detail
Top

PUBLIC LOGICAL AutoExpand

Returns LOGICAL
Top

PUBLIC INTEGER Depth

Returns INTEGER
Top

PUBLIC LOGICAL DiscardOnShrink

Returns LOGICAL
Top

PUBLIC INTEGER Size

Returns INTEGER


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0