Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
stack::stack_t Type Reference

Base type for a stack. More...

Inheritance diagram for stack::stack_t:

Public Member Functions

procedure, non_overridable, pass(thisinit (this, size)
 Initialize a stack of arbitrary type.
 
procedure, non_overridable, pass(thisfree (this)
 Destroy a stack.
 
procedure, non_overridable, pass(thisclear (this)
 Clear all entries of a stack.
 
procedure, non_overridable, pass(thissize (this)
 Return number of entries in the stack.
 
procedure, non_overridable, pass(thisis_empty (this)
 Return true if the stack is empty.
 
procedure, non_overridable, pass(thispush (this, data)
 Push data onto the stack.
 

Public Attributes

class(*), dimension(:), allocatable data
 
integer top_
 
integer size_
 

Detailed Description

Definition at line 49 of file stack.f90.

Member Function/Subroutine Documentation

◆ clear()

procedure, non_overridable, pass(this) stack::stack_t::clear ( class(stack_t), intent(inout this)
final

Definition at line 56 of file stack.f90.

◆ free()

procedure, non_overridable, pass(this) stack::stack_t::free ( class(stack_t), intent(inout this)
final

Definition at line 55 of file stack.f90.

◆ init()

procedure, non_overridable, pass(this) stack::stack_t::init ( class(stack_t), intent(inout this,
integer, optional  size 
)
final
Parameters
sizeInitial size of the stack

Definition at line 54 of file stack.f90.

◆ is_empty()

procedure, non_overridable, pass(this) stack::stack_t::is_empty ( class(stack_t), intent(in this)
final

Definition at line 58 of file stack.f90.

◆ push()

procedure, non_overridable, pass(this) stack::stack_t::push ( class(stack_t), intent(inout), target  this,
class(*), intent(in data 
)
final
Parameters
[in]dataArbitrary typed data (same type as stack)

Definition at line 59 of file stack.f90.

◆ size()

procedure, non_overridable, pass(this) stack::stack_t::size ( class(stack_t), intent(in this)
final

Definition at line 57 of file stack.f90.

Member Data Documentation

◆ data

class(*), dimension(:), allocatable stack::stack_t::data

Definition at line 50 of file stack.f90.

◆ size_

integer stack::stack_t::size_

Definition at line 52 of file stack.f90.

◆ top_

integer stack::stack_t::top_

Definition at line 51 of file stack.f90.


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