lnkini |
Table of contents
ProcedureLNKINI ( LNK, initialize ) SUBROUTINE LNKINI ( SIZE, POOL ) AbstractInitialize a doubly linked list pool. Required_ReadingNone. KeywordsLIST DeclarationsIMPLICIT NONE INTEGER LBPOOL PARAMETER ( LBPOOL = -5 ) INTEGER SIZE INTEGER POOL ( 2, LBPOOL : * ) Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- SIZE I Number of nodes in the pool. POOL I-O An array that is a linked pool on output. LBPOOL P Lower bound of pool column indices. Detailed_InputSIZE is the number of nodes in the pool. POOL is an integer array that will contain the linked pool on output. Detailed_OutputPOOL is an initialized doubly linked list pool. The status of the pool is as follows: -- All nodes in the pool are on the free list. -- The free pointer indicates the first node. -- The total node count is set to the input value, SIZE. -- The free node count is the input value, SIZE. ParametersLBPOOL is the lower bound of the column indices of the POOL array. The columns indexed LBPOOL to 0 are reserved as a control area for the pool. Exceptions1) If the requested number of nodes is nonpositive, the error SPICE(INVALIDCOUNT) is signaled. FilesNone. ParticularsLNKINI must be called once to initialize a doubly linked list pool before the pool is used. LNKINI can be called at any time to re-initialize a doubly linked list pool. The functions LNKNFN ( LNK, number of free nodes ) and LNKSIZ ( LNK, size of pool ) will both return the value PLSIZE if called immediately after a call to LNKINI. Examples1) Let POOL be a doubly linked list pool with a maximum of 100 nodes. POOL should be declared as follows: INTEGER LBPOOL PARAMETER ( LBPOOL = -5 ) INTEGER PLSIZE PARAMETER ( PLSIZE = 100 ) INTEGER POOL ( 2, LBPOOL : PLSIZE ) To initialize POOL, use the call CALL LNKINI ( PLSIZE, POOL ) RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) J. Diaz del Rio (ODC Space) W.L. Taber (JPL) VersionSPICELIB Version 1.0.1, 24-NOV-2021 (JDR) Edited the header to comply with NAIF standard. SPICELIB Version 1.0.0, 19-DEC-1995 (NJB) (WLT) |
Fri Dec 31 18:36:31 2021