MONC
Private Member Functions | List of all members
collections_mod::c_get_iterator Interface Reference

Private Member Functions

type(iterator_type) function list_get_iterator (specificlist)
 Retrieves an iterator representation of the list, ready to access the first element. More...
 
type(iterator_type) function map_get_iterator (specificmap)
 Retrieves an iterator representation of the map, ready to access the first element. More...
 
type(iterator_type) function hashmap_get_iterator (specificmap)
 Retrieves an iterator representation of the hashmap, ready to access the first element. More...
 
type(iterator_type) function hashset_get_iterator (specificset)
 Retrieves an iterator representation of the hashset, ready to access the first element. More...
 
type(iterator_type) function stack_get_iterator (specificstack)
 Retrieves an iterator representation of the stack, ready to access the first element. More...
 
type(iterator_type) function queue_get_iterator (specificqueue)
 Retrieves an iterator representation of the queue, ready to access the first element. More...
 

Detailed Description

Definition at line 581 of file collections.F90.

Member Function/Subroutine Documentation

◆ hashmap_get_iterator()

type(iterator_type) function collections_mod::c_get_iterator::hashmap_get_iterator ( type(hashmap_type), intent(inout)  specificmap)
private

Retrieves an iterator representation of the hashmap, ready to access the first element.

Parameters
specificmapSpecific collection to base this iterator on
Returns
The iterator ready to access the first element

Definition at line 1256 of file collections.F90.

1256  type(hashmap_type), intent(inout) :: specificmap
1257 
1258  integer :: i
1259 
1260  hashmap_get_iterator%next_item=>null()
1261  if (associated(specificmap%map_ds)) then
1262  hashmap_get_iterator%hash_structure=>specificmap%map_ds
1263 
1264  do i=1, size(specificmap%map_ds)
1265  if (specificmap%map_ds(i)%size .gt. 0) then
1266  hashmap_get_iterator%next_item=>specificmap%map_ds(i)%head
1267  exit
1268  end if
1269  end do
1270  hashmap_get_iterator%hash_ptr=i+1
1271  end if

◆ hashset_get_iterator()

type(iterator_type) function collections_mod::c_get_iterator::hashset_get_iterator ( type(hashset_type), intent(inout)  specificset)
private

Retrieves an iterator representation of the hashset, ready to access the first element.

Parameters
specificsetSpecific collection to base this iterator on
Returns
The iterator ready to access the first element

Definition at line 1934 of file collections.F90.

1934  type(hashset_type), intent(inout) :: specificset
1935 
1936  integer :: i
1937 
1938  hashset_get_iterator%next_item=>null()
1939  if (associated(specificset%set_ds)) then
1940  hashset_get_iterator%hash_structure=>specificset%set_ds
1941 
1942  do i=1, size(specificset%set_ds)
1943  if (specificset%set_ds(i)%size .gt. 0) then
1944  hashset_get_iterator%next_item=>specificset%set_ds(i)%head
1945  exit
1946  end if
1947  end do
1948  hashset_get_iterator%hash_ptr=i+1
1949  end if

◆ list_get_iterator()

type(iterator_type) function collections_mod::c_get_iterator::list_get_iterator ( type(list_type), intent(inout)  specificlist)
private

Retrieves an iterator representation of the list, ready to access the first element.

Parameters
specificlistSpecific collection to base this iterator on
Returns
The iterator ready to access the first element

Definition at line 2769 of file collections.F90.

2769  type(list_type), intent(inout) :: specificlist
2770 
2771  list_get_iterator%next_item=>specificlist%head
2772  list_get_iterator%hash_structure=>null()
2773  list_get_iterator%hash_ptr=0

◆ map_get_iterator()

type(iterator_type) function collections_mod::c_get_iterator::map_get_iterator ( type(map_type), intent(inout)  specificmap)
private

Retrieves an iterator representation of the map, ready to access the first element.

Parameters
specificmapSpecific collection to base this iterator on
Returns
The iterator ready to access the first element

Definition at line 628 of file collections.F90.

628  type(map_type), intent(inout) :: specificmap
629 
630  map_get_iterator%next_item=>specificmap%map_ds%head
631  map_get_iterator%hash_structure=>null()
632  map_get_iterator%hash_ptr=0

◆ queue_get_iterator()

type(iterator_type) function collections_mod::c_get_iterator::queue_get_iterator ( type(queue_type), intent(inout)  specificqueue)
private

Retrieves an iterator representation of the queue, ready to access the first element.

Parameters
specificqueueSpecific collection to base this iterator on
Returns
The iterator ready to access the first element

Definition at line 2473 of file collections.F90.

2473  type(queue_type), intent(inout) :: specificqueue
2474 
2475  queue_get_iterator%next_item=>specificqueue%queue_ds%head
2476  queue_get_iterator%hash_structure=>null()
2477  queue_get_iterator%hash_ptr=0

◆ stack_get_iterator()

type(iterator_type) function collections_mod::c_get_iterator::stack_get_iterator ( type(stack_type), intent(inout)  specificstack)
private

Retrieves an iterator representation of the stack, ready to access the first element.

Parameters
specificstackSpecific collection to base this iterator on
Returns
The iterator ready to access the first element

Definition at line 2177 of file collections.F90.

2177  type(stack_type), intent(inout) :: specificstack
2178 
2179  stack_get_iterator%next_item=>specificstack%stack_ds%head
2180  stack_get_iterator%hash_structure=>null()
2181  stack_get_iterator%hash_ptr=0

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