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

PROTECTED Progress.Lang.Object Clone ()

Returns Progress.Lang.Object
Top

PROTECTED 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

PROTECTED Rotate (integer)

Parameters:
piItems INTEGER
Top

PUBLIC SetStackDepth (integer)

Parameters:
piDepth INTEGER
Top

PROTECTED Swap (integer, integer)

Parameters:
piFromPos INTEGER
piToPos INTEGER


Constructor Detail
Top

STATIC Stack ()

Top

PROTECTED Stack ()

Top

Stack (character[])

Parameters:
pcArray CHARACTER
Top

PROTECTED Stack (integer)

Parameters:
piDepth INTEGER
Top

Stack (Object[])

Parameters:
poArray Progress.Lang.Object


Property Detail
Top

PROTECTED LOGICAL AutoExpand

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

PROTECTED INTEGER Depth

Returns INTEGER
Top

PROTECTED 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

PROTECTED INTEGER Size

Returns INTEGER


10.27.2015 12:36:25