SAP ABAP Class CL_CM_STACK (CM: Generic Stack)
Hierarchy
☛
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
⤷
LO-CM (Application Component) Configuration management
⤷
CMT2 (Package) Configuration Management - Core Development - (Version2)
⤷
⤷
Properties
| Class | CL_CM_STACK | |
| Short Description | CM: Generic Stack | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CMT2 | Configuration Management - Core Development - (Version2) |
| Created | 20000901 | SAP |
| Last change | 20020412 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_CM_STACK has no interface implemented.
Friends
Class CL_CM_STACK has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | I | 0 | Boolean: False | 20000901 | ||
| 2 | Instance attribute | Private | Object reference (TYPE REF TO) | DATA | Stack header | 20000904 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | ABAP_ABSTYPENAME | Type of data object in the stack | 20000904 | |||
| 4 | Instance attribute | Private | Object reference (TYPE REF TO) | DATA | End of the stack | 20000904 | |||
| 5 | Constant | Public | Type reference (TYPE) | I | 1 | Boolean: True | 20000901 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | Constructor | 20000901 | |
| 2 | Instance method | Private | Method | Recursive determination of the size of the stack | 20000904 | |
| 3 | Instance method | Public | Method | Check whether the stack is empty | 20000901 | |
| 4 | Instance method | Private | Method | Does the data object fit in the stack contents? | 20000904 | |
| 5 | Instance method | Public | Method | Get instance from the stack | 20000901 | |
| 6 | Instance method | Public | Method | Create an instance from the stack | 20000901 | |
| 7 | Instance method | Public | Method | Stack empty | 20000901 | |
| 8 | Instance method | Public | Method | Number of objects in the stack | 20000901 | |
| 9 | Instance method | Public | Method | Read instance from the stack without also calling up value | 20000901 |
Events
Class CL_CM_STACK has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_NODE | Private | See coding | Structure of the stack levels | 20000904 | |
Method Signatures
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_CM_STACK has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fataler Fehler: Seicher konnte nicht allokiert werden | 20000901 |
Method H_SIZE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_HEAD | Call by reference | Object reference (TYPE REF TO) | DATA | MUSS bei Aufruf initial sein !! | 20000904 | |||
| 2 | C_SIZE | Call by reference | Type reference (TYPE) | I | Enthält die Stackgrösse | 20000904 |
Method H_SIZE on class CL_CM_STACK has no exception.
Method IS_EMPTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT | Value transfer | Type reference (TYPE) | I | 1: Stack ist leer - 0: Stack nicht leer | 20000904 |
Method IS_EMPTY on class CL_CM_STACK has no exception.
Method IS_TYPE_WRONG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_KEY | Call by reference | Type reference (TYPE) | ANY | Datenobjekt dessen Typ gegen den Stack geprüft werden soll | 20000904 | |||
| 2 | RESULT | Value transfer | Type reference (TYPE) | I | TRUE oder FALSE | 20000904 |
Method IS_TYPE_WRONG on class CL_CM_STACK has no exception.
Method POP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_KEY | Call by reference | Type reference (TYPE) | ANY | Hole oberstes Datenobjekt vom Stack | 20000904 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Der Stack ist leer | 20000901 | ||
| 2 | Datentyp von E_KEY passt nicht zu den Daten auf dem Stack | 20000901 |
Method PUSH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_KEY | Call by reference | Type reference (TYPE) | ANY | Datenobjekt, die auf dem Stack abgelegt werden soll | 20000901 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fataler Fehler: Seicher konnte nicht allokiert werden | 20000901 | ||
| 2 | Datentyp von I_KEY passt nicht zu den Daten auf dem Stack | 20000901 |
Method REFRESH Signature
Method REFRESH on class CL_CM_STACK has no parameter.
Method REFRESH on class CL_CM_STACK has no exception.
Method SIZE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_SIZE | Value transfer | Type reference (TYPE) | I | Aktuelle Zahl der Objekte auf dem Stack | 20000904 |
Method SIZE on class CL_CM_STACK has no exception.
Method TOP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_KEY | Call by reference | Type reference (TYPE) | ANY | Lese oberstes Datenobjekt auf dem Stack | 20000904 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Der Stack ist leer | 20000904 | ||
| 2 | Datentyp von E_KEY passt nicht zu den Daten auf dem Stack | 20000904 |
History
| Last changed by/on | SAP | 20020412 |
| SAP Release Created in | 46C |