MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
Collaboration diagram for stlvecintmodule::stlvecint:
Collaboration graph

Public Member Functions

procedure, pass(this) init (this, capacity)
 allocate memory, init size and capacity
procedure, pass(this) push_back (this, newvalue)
 adds an element at the end of the vector
procedure, pass(this) push_back_unique (this, newvalue)
 adds an element at the end of the vector, if not present yet
procedure, pass(this) pop (this)
 removes the last element
procedure, pass(this) add_array (this, array)
 adds elements of array at the end of the vector
procedure, pass(this) add_array_unique (this, array)
 adds elements of array at the end of the vector, if not present yet
procedure, pass(this) at (this, idx)
 random access, unsafe, no bounds checking
procedure, pass(this) at_safe (this, idx)
 random access with bounds checking
procedure, pass(this) set (this, idx, value)
 set value at index, no bounds checking
procedure, pass(this) clear (this)
 empties the vector, leaves memory unchanged
procedure, pass(this) shrink_to_fit (this)
 reduces the allocated memory to fit the actual vector size
procedure, pass(this) destroy (this)
 deletes the memory
procedure, pass(this) contains (this, val)
 true when element already present
procedure, pass(this) get_index (this, val)
 return index of first occurrence of value in array, -1 when not present
procedure, pass(this) get_values (this)
 returns a copy of the values

Public Attributes

integer(i4b) size
 the number of elements

Private Member Functions

procedure, pass(this), private expand (this)

Private Attributes

integer(i4b), dimension(:), allocatable, private values
 the internal array for storage
integer(i4b), private capacity
 the reserved storage

Detailed Description

Definition at line 12 of file STLVecInt.f90.

Member Function/Subroutine Documentation

◆ add_array()

procedure, pass(this) stlvecintmodule::stlvecint::add_array ( class(stlvecint), intent(inout) this,
integer(i4b), dimension(:), pointer array )

Definition at line 21 of file STLVecInt.f90.

◆ add_array_unique()

procedure, pass(this) stlvecintmodule::stlvecint::add_array_unique ( class(stlvecint), intent(inout) this,
integer(i4b), dimension(:), pointer array )

Definition at line 22 of file STLVecInt.f90.

◆ at()

procedure, pass(this) stlvecintmodule::stlvecint::at ( class(stlvecint), intent(in) this,
integer(i4b), intent(in) idx )

Definition at line 23 of file STLVecInt.f90.

◆ at_safe()

procedure, pass(this) stlvecintmodule::stlvecint::at_safe ( class(stlvecint), intent(inout) this,
integer(i4b), intent(in) idx )

Definition at line 24 of file STLVecInt.f90.

◆ clear()

procedure, pass(this) stlvecintmodule::stlvecint::clear ( class(stlvecint), intent(inout) this)

Definition at line 26 of file STLVecInt.f90.

◆ contains()

procedure, pass(this) stlvecintmodule::stlvecint::contains ( class(stlvecint), intent(inout) this,
integer(i4b) val )

Definition at line 29 of file STLVecInt.f90.

◆ destroy()

procedure, pass(this) stlvecintmodule::stlvecint::destroy ( class(stlvecint), intent(inout) this)

Definition at line 28 of file STLVecInt.f90.

◆ expand()

procedure, pass(this), private stlvecintmodule::stlvecint::expand ( class(stlvecint), intent(inout) this)
private

Definition at line 33 of file STLVecInt.f90.

◆ get_index()

procedure, pass(this) stlvecintmodule::stlvecint::get_index ( class(stlvecint), intent(inout) this,
integer(i4b) val )

Definition at line 30 of file STLVecInt.f90.

◆ get_values()

procedure, pass(this) stlvecintmodule::stlvecint::get_values ( class(stlvecint), intent(in) this)

Definition at line 31 of file STLVecInt.f90.

◆ init()

procedure, pass(this) stlvecintmodule::stlvecint::init ( class(stlvecint), intent(inout) this,
integer(i4b), intent(in), optional capacity )

Definition at line 17 of file STLVecInt.f90.

◆ pop()

procedure, pass(this) stlvecintmodule::stlvecint::pop ( class(stlvecint), intent(inout) this)

Definition at line 20 of file STLVecInt.f90.

◆ push_back()

procedure, pass(this) stlvecintmodule::stlvecint::push_back ( class(stlvecint), intent(inout) this,
integer(i4b) newvalue )

Definition at line 18 of file STLVecInt.f90.

◆ push_back_unique()

procedure, pass(this) stlvecintmodule::stlvecint::push_back_unique ( class(stlvecint), intent(inout) this,
integer(i4b) newvalue )

Definition at line 19 of file STLVecInt.f90.

◆ set()

procedure, pass(this) stlvecintmodule::stlvecint::set ( class(stlvecint), intent(inout) this,
integer(i4b), intent(in) idx,
integer(i4b) value )

Definition at line 25 of file STLVecInt.f90.

◆ shrink_to_fit()

procedure, pass(this) stlvecintmodule::stlvecint::shrink_to_fit ( class(stlvecint), intent(inout) this)

Definition at line 27 of file STLVecInt.f90.

Member Data Documentation

◆ capacity

integer(i4b), private stlvecintmodule::stlvecint::capacity
private

Definition at line 15 of file STLVecInt.f90.

15 integer(I4B), private :: capacity !< the reserved storage

◆ size

integer(i4b) stlvecintmodule::stlvecint::size

Definition at line 14 of file STLVecInt.f90.

14 integer(I4B) :: size !< the number of elements

◆ values

integer(i4b), dimension(:), allocatable, private stlvecintmodule::stlvecint::values
private

Definition at line 13 of file STLVecInt.f90.

13 integer(I4B), private, allocatable :: values(:) !< the internal array for storage

The documentation for this type was generated from the following file:
  • /home/runner/work/modflow6/modflow6/src/Utilities/STLVecInt.f90