MONC
|
Pushes a generic element onto the stack or queue. More...
Private Member Functions | |
subroutine | stack_push_generic (specificstack, data, memory_allocation_automatic) |
Pushes an element onto the stack (LIFO) More... | |
subroutine | queue_push_generic (specificqueue, data, memory_allocation_automatic) |
Adds an element to the end of the queue (FIFO) More... | |
Pushes a generic element onto the stack or queue.
This has a time complexity of O(1)
collection | The specific stack or queue involved |
data | Pointer to the generic data to push onto the collection |
memory_allocation_automatic | Whether the collections API should manage the freeing of memory |
Definition at line 113 of file collections.F90.
|
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
specificqueue | The specific queue involved |
data | Pointer to the generic data to add to the queue |
memory_allocation_automatic | Whether the collections API should manage the freeing of memory |
Definition at line 2547 of file collections.F90.
|
private |
Pushes an element onto the stack (LIFO)
Do not call directly from external module, this is called via the appropriate interface
specificstack | The specific stack involved |
data | Pointer to the generic data to push onto the stack |
memory_allocation_automatic | Whether the collections API should manage the freeing of memory |
Definition at line 2251 of file collections.F90.