Add child() to DiscreteFunction to have a similar interface as DOFVector.
child()
DiscreteFunction
DOFVector