the class of stack with integer elements
push an integer into a stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S | ||||
integer, | intent(in) | :: | val |
pop an integer out of a stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S |
return the top of a stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S |
return the number of elements in a stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S |
clean a stack
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S |
read a stack from a file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S | ||||
integer, | intent(in) | :: | unit |
save a stack to a file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack) | :: | S | ||||
integer, | intent(in) | :: | unit |
check if a stack is consistent
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack), | intent(in) | :: | S |
public only for test, don't use
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(stack), | intent(in) | :: | S |
assignment of a stack