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

Pushes a double precision real element onto the stack or queue. More...

Private Member Functions

subroutine stack_push_real (specificstack, real_data)
 Pushes an element onto the stack (LIFO) More...
 
subroutine queue_push_real (specificqueue, real_data)
 Adds an element to the end of the queue (FIFO) More...
 

Detailed Description

Pushes a double precision real element onto the stack or queue.

This has a time complexity of O(1)

Parameters
collectionThe specific stack or queue involved
dataDouble precision real data to push onto the collection

Definition at line 140 of file collections.F90.

Member Function/Subroutine Documentation

◆ queue_push_real()

subroutine collections_mod::c_push_real::queue_push_real ( type(queue_type), intent(inout)  specificqueue,
real(kind=default_precision), intent(in)  real_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
dataDouble precision real data to add to the queue

Definition at line 2516 of file collections.F90.

2516  type(queue_type), intent(inout) :: specificqueue
2517  real(kind=DEFAULT_PRECISION), intent(in) :: real_data
2518 
2519  class(*), pointer :: generic
2520 
2521  generic=>conv_to_generic(real_data, .true.)
2522  call queue_push_generic(specificqueue, generic, .true.)

◆ stack_push_real()

subroutine collections_mod::c_push_real::stack_push_real ( type(stack_type), intent(inout)  specificstack,
real(kind=default_precision), intent(in)  real_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
dataDouble precision real data to push onto the stack

Definition at line 2220 of file collections.F90.

2220  type(stack_type), intent(inout) :: specificstack
2221  real(kind=DEFAULT_PRECISION), intent(in) :: real_data
2222 
2223  class(*), pointer :: generic
2224 
2225  generic=>conv_to_generic(real_data, .true.)
2226  call stack_push_generic(specificstack, generic, .true.)

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