Xport Interface: markup::descendant_begin

When called on a derived element object, returns a descendant iterator pointing to the first child markup object in the element.

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

Parameters

None

Returns

When called from a derived element object, returns a descendant markup iterator (or const descendant iterator in the second variety) pointing to the first child markup object in the element. If called from any other markup derived markup object or if the element contains no children, returns markup::descendant_end().

Remarks

This operation is revelant only if it is called on a derived element object. When called from any other object derived from markup, returns markup::descendant_end(). When called from a derived element, this operation returns a descendant iterator pointing to the first child markup object in the element, which can be used for traversing the element's descendants, retrieving information on the descendants, or inserting content into the descendants. If the called element is a const object, a const_descendant_iterator will be returned. The descendant iterators traverse the document tree in a pre-order fashion. In a pre-order traversal, the beginning node is naturally the first child node of the called node.

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.