![]() |
MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
|
A derived type representing a stack of integers. More...

Public Member Functions | |
| procedure, pass(this) | init (this, capacity) |
| allocate memory, init size and capacity | |
| procedure, pass(this) | destroy (this) |
| deletes the memory | |
| procedure, pass(this) | push (this, newvalue) |
| adds an element at the end of the vector | |
| procedure, pass(this) | pop (this) |
| removes the last element | |
| procedure, pass(this) | top (this) |
| returns the last element (without removing it) | |
| procedure, pass(this) | size (this) |
| returns the size of the stack | |
Private Attributes | |
| type(stlvecint), private | stack |
| the internal stack | |
This type provides a stack data structure specifically for integers. It includes methods for typical stack operations such as push, pop,
Definition at line 14 of file STLStackInt.f90.
| procedure, pass(this) stlstackintmodule::stlstackint::destroy | ( | class(stlstackint), intent(inout) | this | ) |
Definition at line 18 of file STLStackInt.f90.
| procedure, pass(this) stlstackintmodule::stlstackint::init | ( | class(stlstackint), intent(inout) | this, |
| integer(i4b), intent(in), optional | capacity ) |
Definition at line 17 of file STLStackInt.f90.
| procedure, pass(this) stlstackintmodule::stlstackint::pop | ( | class(stlstackint), intent(inout) | this | ) |
Definition at line 20 of file STLStackInt.f90.
| procedure, pass(this) stlstackintmodule::stlstackint::push | ( | class(stlstackint), intent(inout) | this, |
| integer(i4b) | newvalue ) |
Definition at line 19 of file STLStackInt.f90.
| procedure, pass(this) stlstackintmodule::stlstackint::size | ( | class(stlstackint), intent(in) | this | ) |
Definition at line 22 of file STLStackInt.f90.
| procedure, pass(this) stlstackintmodule::stlstackint::top | ( | class(stlstackint), intent(in) | this | ) |
Definition at line 21 of file STLStackInt.f90.
|
private |
Definition at line 15 of file STLStackInt.f90.