(git:c5411e0)
Loading...
Searching...
No Matches
submatrix_types::set_type Type Reference

Public Member Functions

procedure insert (this, elem)
 insert element into set
 
procedure reset (this)
 purse set and free allocated memory
 
procedure find (this, elem)
 find element in set
 
procedure get (this, idx)
 get element from specific position in set
 
procedure getall (this)
 get all elements in set as sorted list
 
procedure update_sorted (this)
 update internal list of set elements
 

Data Fields

type(extvec_type), dimension(0:set_modulus - 1) data
 
integer, dimension(:), allocatable sorted
 
integer elements = 0
 
logical sorted_up_to_date = .FALSE.
 

Detailed Description

Definition at line 29 of file submatrix_types.F.

Member Function/Subroutine Documentation

◆ insert()

procedure submatrix_types::set_type::insert ( class(set_type), intent(inout)  this,
integer, intent(in)  elem 
)

insert element into set

Parameters
this- instance of set_type
elem- element to insert

Definition at line 35 of file submatrix_types.F.

◆ reset()

procedure submatrix_types::set_type::reset ( class(set_type), intent(inout)  this)

purse set and free allocated memory

Parameters
this- instance of set_type

Definition at line 36 of file submatrix_types.F.

◆ find()

procedure submatrix_types::set_type::find ( class(set_type), intent(in)  this,
integer, intent(in)  elem 
)

find element in set

Parameters
this- instance of set_type
elem- element to look for
Returns
.TRUE. if element is contained in set, .FALSE. otherwise

Definition at line 37 of file submatrix_types.F.

◆ get()

procedure submatrix_types::set_type::get ( class(set_type), intent(inout)  this,
integer, intent(in)  idx 
)

get element from specific position in set

Parameters
this- instance of set_type
idx- position in set
Returns
element at position idx

Definition at line 38 of file submatrix_types.F.

◆ getall()

procedure submatrix_types::set_type::getall ( class(set_type), intent(inout)  this)

get all elements in set as sorted list

Parameters
this- instance of set_type
Returns
sorted array containing set elements

Definition at line 39 of file submatrix_types.F.

◆ update_sorted()

procedure submatrix_types::set_type::update_sorted ( class(set_type), intent(inout)  this)

update internal list of set elements

Parameters
this- instance of extendable vector

Definition at line 40 of file submatrix_types.F.

Field Documentation

◆ data

type(extvec_type), dimension(0:set_modulus - 1) submatrix_types::set_type::data

Definition at line 30 of file submatrix_types.F.

◆ sorted

integer, dimension(:), allocatable submatrix_types::set_type::sorted

Definition at line 31 of file submatrix_types.F.

◆ elements

integer submatrix_types::set_type::elements = 0

Definition at line 32 of file submatrix_types.F.

◆ sorted_up_to_date

logical submatrix_types::set_type::sorted_up_to_date = .FALSE.

Definition at line 33 of file submatrix_types.F.


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