Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(node), | intent(in) | :: | this |
The stored in the node.
An accessor returning a container object storing the value placed in the node. If the contents have not been set then an unallocated container is returned.
pure function get_contents(this)
!* Author: Chris MacMackin
! Date: February 2016
!
! An accessor returning a [[container]] object storing the value
! placed in the node. If the contents have not been set then an
! unallocated container is returned.
!
class(node), intent(in) :: this
class(container), allocatable :: get_contents !! The stored in the node.
if (this%has_contents()) allocate(get_contents, source=this%contents)
end function get_contents