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

Pushes a string element onto the stack or queue. More...

Private Member Functions

subroutine stack_push_string (specificstack, str_data)
 Pushes an element onto the stack (LIFO) More...
 
subroutine queue_push_string (specificqueue, str_data)
 Adds an element to the end of the queue (FIFO) More...
 

Detailed Description

Pushes a string element onto the stack or queue.

This has a time complexity of O(1)

Parameters
collectionThe specific stack or queue involved
dataString data to push onto the collection

Definition at line 131 of file collections.F90.

Member Function/Subroutine Documentation

◆ queue_push_string()

subroutine collections_mod::c_push_string::queue_push_string ( type(queue_type), intent(inout)  specificqueue,
character(len=string_length), intent(in)  str_data 
)
private

Adds an element to the end of the queue (FIFO)

Do not call directly from external module, this is called via the appropriate interface

Parameters
specificqueueThe specific queue involved
dataString data to add to the queue

Definition at line 2500 of file collections.F90.

2501  type(queue_type), intent(inout) :: specificqueue
2502  character(len=STRING_LENGTH), intent(in) :: str_data
2503 
2504  class(*), pointer :: generic
2505 
2506  generic=>conv_to_generic(str_data, .true.)
2507  call queue_push_generic(specificqueue, generic, .true.)

◆ stack_push_string()

subroutine collections_mod::c_push_string::stack_push_string ( type(stack_type), intent(inout)  specificstack,
character(len=string_length), intent(in)  str_data 
)
private

Pushes an element onto the stack (LIFO)

Do not call directly from external module, this is called via the appropriate interface

Parameters
specificstackThe specific stack involved
dataString data to push onto the stack

Definition at line 2204 of file collections.F90.

2205  type(stack_type), intent(inout) :: specificstack
2206  character(len=STRING_LENGTH), intent(in) :: str_data
2207 
2208  class(*), pointer :: generic
2209 
2210  generic=>conv_to_generic(str_data, .true.)
2211  call stack_push_generic(specificstack, generic, .true.)

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