MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
stlstackintmodule::stlstackint Type Reference

A derived type representing a stack of integers. More...

Collaboration diagram for stlstackintmodule::stlstackint:
Collaboration graph

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

Detailed Description

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.

Member Function/Subroutine Documentation

◆ destroy()

procedure, pass(this) stlstackintmodule::stlstackint::destroy ( class(stlstackint), intent(inout) this)

Definition at line 18 of file STLStackInt.f90.

◆ init()

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.

◆ pop()

procedure, pass(this) stlstackintmodule::stlstackint::pop ( class(stlstackint), intent(inout) this)

Definition at line 20 of file STLStackInt.f90.

◆ push()

procedure, pass(this) stlstackintmodule::stlstackint::push ( class(stlstackint), intent(inout) this,
integer(i4b) newvalue )

Definition at line 19 of file STLStackInt.f90.

◆ size()

procedure, pass(this) stlstackintmodule::stlstackint::size ( class(stlstackint), intent(in) this)

Definition at line 22 of file STLStackInt.f90.

◆ top()

procedure, pass(this) stlstackintmodule::stlstackint::top ( class(stlstackint), intent(in) this)

Definition at line 21 of file STLStackInt.f90.

Member Data Documentation

◆ stack

type(stlvecint), private stlstackintmodule::stlstackint::stack
private

Definition at line 15 of file STLStackInt.f90.

15 type(STLVecInt), private :: stack !< the internal stack

The documentation for this type was generated from the following file: