Xport Interface: markup::parent

Returns a pointer to the parent element of the called markup object.

markup* markup::parent();1st Variety
const markup* markup::parent();2nd Variety

Parameters

None

Returns

Returns a pointer to the parent element of the called markup object.

Remarks

This operation is used to obtain a pointer to the called markup object's parent. The returned pointer is always guaranteed to return a derived element object, since only element objects can contain other child markup objects.

All markup objects in the document tree have a parent element, except for the document root. When called on the document root, this operation will return NULL.

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.