|
| 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
|
|
| integer(i4b) | size |
| | the number of elements
|
|
| procedure, pass(this), private | expand (this) |
|
| integer(i4b), dimension(:), allocatable, private | values |
| | the internal array for storage
|
| integer(i4b), private | capacity |
| | the reserved storage
|
Definition at line 12 of file STLVecInt.f90.
◆ add_array()
| procedure, pass(this) stlvecintmodule::stlvecint::add_array |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b), dimension(:), pointer | array ) |
◆ add_array_unique()
| procedure, pass(this) stlvecintmodule::stlvecint::add_array_unique |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b), dimension(:), pointer | array ) |
◆ at()
| procedure, pass(this) stlvecintmodule::stlvecint::at |
( |
class(stlvecint), intent(in) | this, |
|
|
integer(i4b), intent(in) | idx ) |
◆ at_safe()
| procedure, pass(this) stlvecintmodule::stlvecint::at_safe |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b), intent(in) | idx ) |
◆ clear()
| procedure, pass(this) stlvecintmodule::stlvecint::clear |
( |
class(stlvecint), intent(inout) | this | ) |
|
◆ contains()
| procedure, pass(this) stlvecintmodule::stlvecint::contains |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b) | val ) |
◆ destroy()
| procedure, pass(this) stlvecintmodule::stlvecint::destroy |
( |
class(stlvecint), intent(inout) | this | ) |
|
◆ expand()
| procedure, pass(this), private stlvecintmodule::stlvecint::expand |
( |
class(stlvecint), intent(inout) | this | ) |
|
|
private |
◆ get_index()
| procedure, pass(this) stlvecintmodule::stlvecint::get_index |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b) | val ) |
◆ get_values()
| procedure, pass(this) stlvecintmodule::stlvecint::get_values |
( |
class(stlvecint), intent(in) | this | ) |
|
◆ init()
| procedure, pass(this) stlvecintmodule::stlvecint::init |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b), intent(in), optional | capacity ) |
◆ pop()
| procedure, pass(this) stlvecintmodule::stlvecint::pop |
( |
class(stlvecint), intent(inout) | this | ) |
|
◆ push_back()
| procedure, pass(this) stlvecintmodule::stlvecint::push_back |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b) | newvalue ) |
◆ push_back_unique()
| procedure, pass(this) stlvecintmodule::stlvecint::push_back_unique |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b) | newvalue ) |
◆ set()
| procedure, pass(this) stlvecintmodule::stlvecint::set |
( |
class(stlvecint), intent(inout) | this, |
|
|
integer(i4b), intent(in) | idx, |
|
|
integer(i4b) | value ) |
◆ shrink_to_fit()
| procedure, pass(this) stlvecintmodule::stlvecint::shrink_to_fit |
( |
class(stlvecint), intent(inout) | this | ) |
|
◆ capacity
| integer(i4b), private stlvecintmodule::stlvecint::capacity |
|
private |
Definition at line 15 of file STLVecInt.f90.
15 integer(I4B), private :: capacity
◆ size
| integer(i4b) stlvecintmodule::stlvecint::size |
◆ 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 documentation for this type was generated from the following file: