Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | next | = | NULL_NODE | ||
integer, | public | :: | parent | = | NULL_NODE | ||
integer, | public | :: | left | = | NULL_NODE | ||
integer, | public | :: | right | = | NULL_NODE | ||
integer, | public | :: | height | = | -1 | ||
integer, | public | :: | atom | = | 0 | ||
type(aabb_t), | public | :: | aabb |
Initializes a node.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(node_t), | intent(out) | :: | this | A node_t instance. |
Is this a leaf node?
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(node_t), | intent(in) | :: | this | A node_t instance. |
true if this is a leaf node, false otherwise.
Returns a string representation of a node.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(node_t), | intent(in) | :: | this | A node_t instance. |
||
character(len=*), | intent(in), | optional | :: | frmt | Format string for real numbers, e.g. '(f15.6)'. Default: (g0.6). |
Return value
type node_t
integer :: next = NULL_NODE
integer :: parent = NULL_NODE
integer :: left = NULL_NODE
integer :: right = NULL_NODE
integer :: height = -1
integer :: atom = 0
type(aabb_t) :: aabb
contains
procedure :: init => node_init
procedure :: isleaf => node_isleaf
procedure :: asstr => node_asstr
end type node_t