MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
stlstackintmodule::stlstackint Type Reference

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

Collaboration diagram for stlstackintmodule::stlstackint:
Collaboration graph

Private Member Functions

procedure, pass(this) init
 allocate memory, init size and capacity More...
 
procedure, pass(this) destroy
 deletes the memory More...
 
procedure, pass(this) push
 adds an element at the end of the vector More...
 
procedure, pass(this) pop
 removes the last element More...
 
procedure, pass(this) top
 returns the last element (without removing it) More...
 
procedure, pass(this) size
 returns the size of the stack More...
 

Private Attributes

type(stlvecint), private stack
 the internal stack More...
 

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
private

Definition at line 18 of file STLStackInt.f90.

◆ init()

procedure, pass(this) stlstackintmodule::stlstackint::init
private

Definition at line 17 of file STLStackInt.f90.

◆ pop()

procedure, pass(this) stlstackintmodule::stlstackint::pop
private

Definition at line 20 of file STLStackInt.f90.

◆ push()

procedure, pass(this) stlstackintmodule::stlstackint::push
private

Definition at line 19 of file STLStackInt.f90.

◆ size()

procedure, pass(this) stlstackintmodule::stlstackint::size
private

Definition at line 22 of file STLStackInt.f90.

◆ top()

procedure, pass(this) stlstackintmodule::stlstackint::top
private

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: