contents Function

private pure function contents(this)

Arguments

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

Return Value integer(kind=i1), dimension(:),allocatable

Description

Returns the contents, encoded as a character array, of the container.


Source Code

  pure function contents(this)
    !! Author: Chris MacMackin
    !! Date: December 2015
    !!
    !! Returns the contents, encoded as a character array, of the 
    !! container.
    class(container), intent(in)   ::  this
    integer(i1), dimension(:), allocatable  ::  contents
    contents = this%storage
  end function contents