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

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

Private Member Functions

subroutine stack_push_logical (specificstack, logical_data)
 Pushes an element onto the stack (LIFO) More...
 
subroutine queue_push_logical (specificqueue, logical_data)
 Adds an element to the end of the queue (FIFO) More...
 

Detailed Description

Pushes a logical element onto the stack or queue.

This has a time complexity of O(1)

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

Definition at line 149 of file collections.F90.

Member Function/Subroutine Documentation

◆ queue_push_logical()

subroutine collections_mod::c_push_logical::queue_push_logical ( type(queue_type), intent(inout)  specificqueue,
logical, intent(in)  logical_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
dataLogical data to add to the queue

Definition at line 2530 of file collections.F90.

2531  type(queue_type), intent(inout) :: specificqueue
2532  logical, intent(in) :: logical_data
2533 
2534  class(*), pointer :: generic
2535 
2536  generic=>conv_to_generic(logical_data, .true.)
2537  call queue_push_generic(specificqueue, generic, .true.)

◆ stack_push_logical()

subroutine collections_mod::c_push_logical::stack_push_logical ( type(stack_type), intent(inout)  specificstack,
logical, intent(in)  logical_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
dataLogical data to push onto the stack

Definition at line 2234 of file collections.F90.

2235  type(stack_type), intent(inout) :: specificstack
2236  logical, intent(in) :: logical_data
2237 
2238  class(*), pointer :: generic
2239 
2240  generic=>conv_to_generic(logical_data, .true.)
2241  call stack_push_generic(specificstack, generic, .true.)

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