Base type for a stack.
More...
|
| procedure, non_overridable, pass(this) | init (this, size) |
| | Initialize a stack of arbitrary type.
|
| procedure, non_overridable, pass(this) | free (this) |
| | Destroy a stack.
|
| procedure, non_overridable, pass(this) | clear (this) |
| | Clear all entries of a stack.
|
| procedure, non_overridable, pass(this) | size (this) |
| | Return number of entries in the stack.
|
| procedure, non_overridable, pass(this) | is_empty (this) |
| | Return true if the stack is empty.
|
| procedure, non_overridable, pass(this) | push (this, data) |
| | Push data onto the stack.
|
|
| class(*), dimension(:), allocatable | data |
| integer | top_ = 0 |
| integer | size_ = 0 |
Definition at line 63 of file stack.f90.
◆ clear()
| procedure, non_overridable, pass(this) stack::stack_t::clear |
( |
class(stack_t), intent(inout) | this | ) |
|
|
final |
◆ free()
| procedure, non_overridable, pass(this) stack::stack_t::free |
( |
class(stack_t), intent(inout) | this | ) |
|
|
final |
◆ init()
| procedure, non_overridable, pass(this) stack::stack_t::init |
( |
class(stack_t), intent(inout) | this, |
|
|
integer, optional | size ) |
|
final |
- Parameters
-
| size | Initial size of the stack |
Definition at line 68 of file stack.f90.
◆ is_empty()
| procedure, non_overridable, pass(this) stack::stack_t::is_empty |
( |
class(stack_t), intent(in) | this | ) |
|
|
final |
◆ push()
| procedure, non_overridable, pass(this) stack::stack_t::push |
( |
class(stack_t), intent(inout), target | this, |
|
|
class(*), intent(in) | data ) |
|
final |
- Parameters
-
| [in] | data | Arbitrary typed data (same type as stack) |
Definition at line 73 of file stack.f90.
◆ size()
| procedure, non_overridable, pass(this) stack::stack_t::size |
( |
class(stack_t), intent(in) | this | ) |
|
|
final |
◆ data
| class(*), dimension(:), allocatable stack::stack_t::data |
◆ size_
| integer stack::stack_t::size_ = 0 |
◆ top_
| integer stack::stack_t::top_ = 0 |
The documentation for this type was generated from the following file:
- /home/runner/work/neko/neko/src/adt/stack.f90