Xport Interface: document::descendant_begin

Returns a descendant iterator pointing to the first child markup object in the document.

  descendant_iterator document::descendant_begin();1st Variety
  const_descendant_iterator document::descendant_begin() const;2nd Variety

Parameters

None

Returns

Returns a descendant_iterator, (or const_descendant_iterator in the 2nd variety), which points to the first child markup object in the document. If there are no markup objects in the document, this operation returns descendant_end().

Remarks

Use this operation to obtain a descendant iterator which can be used to traverse every markup object in the document in a pre-order fashion. The first descendant node in a pre-order traversal is by nature of the pre-order traversal, the first child markup object of the called node. This operation is also available in element (see element::descendant_begin()).

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.