PAL CARD CATALOG ENTRY

SHORT DESCRIPTION

Stack manipulation package


MOVEMENT WITHIN THE PAL CARD CATALOG
Move to top-level taxonomy
Move to keyword list

ASSET PROFILE

UNIT NAME
Abstractions/STACK (A1STACK)
VERSION
1.0
REVIEW CODE
C1 1.0 A
INET ADDRESS
Not documented in PAL database
AUTHOR
Bill Toscano, Michael Gordon
Intermetrics, Inc,
733 Concord Ave
Cambridge, MA 02138
Contact: Lt. Colonel Falgiano
ESD/SCW
Hanscom AFB, MA 01731
RIGHTS
PUBLIC DOMAIN
COPYRIGHT
(c) 1985 Intermetrics, Inc.
DATE CREATED
15 October 1985
DATE RELEASED
18 March 1985
DATE LAST UPDATED
17 March 1985
LOCATION
ASR
C2MUG
PC-BLUE
ENVIRONMENT
VAX/VMS, DEC Ada
LIMITATIONS
Not documented in PAL database
CERTIFICATION
Ada System Certifier_1 1.0
Date/Time of Processing: Tuesday   24 May       1994 01:30:09Pm
Overall Assessment of System: OK
Classification of System: A
Basis of Classification --
Syntax Errors                               PASS
Completeness                                PASS
Independence from External Libraries        PASS
Independence from a Specific Ada Compiler   PASS

Number of ...
Files               4
Library Units       4
Lines            1295
Statements        267
Comments          548

FILE LISTING

Directory Display


languages/ada/asr/abstractions/stack:
  File Name                 Size
  ---------                 ----
  stack.zip                2,446

languages/ada/asr/abstractions/lists:
  File Name                 Size
  ---------                 ----
  lists.zip                7,485


Totals
  ==============  ==============
    2 Files                9,931

ABSTRACT

	This generic package provides the STACK abstract data type.
ELEM_TYPE (generic private parameter) is the only generic formal.
There are no explicit bounds on the size of a STACK object.
	The following operations are provided:

Constructors:
	Create      Create a STACK object
	Push        PUSH an ELEM_TYPE onto a STACK
	Pop         POP an ELEM_TYPE from a STACK
	Copy        Copy a STACK
Query Operations:
	Top         Return the ELEM_TYPE object at the top of the STACK
	Size        Return the number of ELEM_TYPE objects on the STACK
	Is_Empty    Return TRUE if the STACK object is empty
Heap Management:
	Destroy     Reclaim the space taken up by the STACK object

        ABSTRACTIONS  is  used  by NOSC/WIS tools 5.1.1, 5.1.2, 6.1.2,
and 6.2.  See also NEW_ABSTRACTIONS.


REVISION HISTORY

DATE         VERSION AUTHOR                  HISTORY 
03/85        1.0  Bill Toscano               Initial Release 


RELEASE NOTICE

This prologue must be included in all copies of this software.

This software is copyright by the author.

This software is released to the Ada community.
This software is released to the Public Domain (note:
  software released to the Public Domain is not subject
  to copyright protection).
Restrictions on use or distribution:  NONE


DISCLAIMER

	This software and its documentation are provided "AS IS" and
without any expressed or implied warranties whatsoever.  No warranties
as to performance, merchantability, or fitness for a particular
purpose exist.
	The user is advised to test the software thoroughly before
relying on it.  The user must assume the entire risk and liability of
using this software.  In no event shall any person or organization of
people be held responsible for any direct, indirect, consequential or
inconsequential damages or lost profits.