has_contents Function

private elemental function has_contents(this)

Arguments

Type IntentOptional AttributesName
class(node), intent(in) :: this

Return Value logical

Description

Returns whether or not a values has been assigned to the node.


Source Code

  elemental logical function has_contents(this)
    !* Author: Chris MacMackin
    !  Date: February 2016
    ! 
    ! Returns whether or not a values has been assigned to the node.
    !
    class(node), intent(in) :: this
    has_contents = allocated(this%contents)
  end function has_contents