MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
stlvecintmodule::stlvecint Type Reference
Collaboration diagram for stlvecintmodule::stlvecint:
Collaboration graph

Private Member Functions

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

Private Attributes

integer(i4b), dimension(:), allocatable, private values
 the internal array for storage More...
 
integer(i4b) size
 the number of elements (technically this stuff should be unsigned) More...
 
integer(i4b) capacity
 the reserved storage More...
 

Detailed Description

Definition at line 12 of file STLVecInt.f90.

Member Function/Subroutine Documentation

◆ add_array()

procedure, pass(this) stlvecintmodule::stlvecint::add_array
private

Definition at line 20 of file STLVecInt.f90.

◆ add_array_unique()

procedure, pass(this) stlvecintmodule::stlvecint::add_array_unique
private

Definition at line 21 of file STLVecInt.f90.

◆ at()

procedure, pass(this) stlvecintmodule::stlvecint::at
private

Definition at line 22 of file STLVecInt.f90.

◆ at_safe()

procedure, pass(this) stlvecintmodule::stlvecint::at_safe
private

Definition at line 23 of file STLVecInt.f90.

◆ clear()

procedure, pass(this) stlvecintmodule::stlvecint::clear
private

Definition at line 25 of file STLVecInt.f90.

◆ contains()

procedure, pass(this) stlvecintmodule::stlvecint::contains
private

Definition at line 28 of file STLVecInt.f90.

◆ destroy()

procedure, pass(this) stlvecintmodule::stlvecint::destroy
private

Definition at line 27 of file STLVecInt.f90.

◆ expand()

procedure, pass(this), private stlvecintmodule::stlvecint::expand
private

Definition at line 32 of file STLVecInt.f90.

◆ get_index()

procedure, pass(this) stlvecintmodule::stlvecint::get_index
private

Definition at line 29 of file STLVecInt.f90.

◆ get_values()

procedure, pass(this) stlvecintmodule::stlvecint::get_values
private

Definition at line 30 of file STLVecInt.f90.

◆ init()

procedure, pass(this) stlvecintmodule::stlvecint::init
private

Definition at line 17 of file STLVecInt.f90.

◆ push_back()

procedure, pass(this) stlvecintmodule::stlvecint::push_back
private

Definition at line 18 of file STLVecInt.f90.

◆ push_back_unique()

procedure, pass(this) stlvecintmodule::stlvecint::push_back_unique
private

Definition at line 19 of file STLVecInt.f90.

◆ set()

procedure, pass(this) stlvecintmodule::stlvecint::set
private

Definition at line 24 of file STLVecInt.f90.

◆ shrink_to_fit()

procedure, pass(this) stlvecintmodule::stlvecint::shrink_to_fit
private

Definition at line 26 of file STLVecInt.f90.

Member Data Documentation

◆ capacity

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

Definition at line 15 of file STLVecInt.f90.

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

◆ size

integer(i4b) stlvecintmodule::stlvecint::size
private

Definition at line 14 of file STLVecInt.f90.

14  integer(I4B) :: size !< the number of elements (technically this stuff should be unsigned)

◆ 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: