// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. class AssociativeArrayNodeStack extends Object; /* A stack of array nodes; used to implement iterators. */ /* Implementation of the stack itself. Top of the stack is at impl[impl.Length-1] */ var private array impl; /* is the stack currently empty? */ function bool isEmpty() { return (impl.Length == 0); } // isEmpty /* Push the given AssociateArrayNode on the top of the stack. */ function push(AssociativeArrayNode a) { impl[impl.Length] = a; } // push /* Pop and top together: Return and remove the top element from the stack. If there is no such node, return None. */ function AssociativeArrayNode pop() { local AssociativeArrayNode retval; if (!isEmpty()) { retval = impl[impl.Length-1]; impl.Remove(impl.Length - 1, 1); return retval; } else { return None; } } // pop // AssociativeArrayNodeStack