Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / xml / repr-sorting.h
1 /** @file
2  * @brief Some functions relevant sorting reprs by position within document.
3  * @todo Functions in this file have non-English names. Determine what they do and rename
4  *       accordingly.
5  */
6  
7 #ifndef SEEN_XML_REPR_SORTING_H
8 #define SEEN_XML_REPR_SORTING_H
10 #include "xml/xml-forward.h"
12 Inkscape::XML::Node *LCA(Inkscape::XML::Node *a, Inkscape::XML::Node *b);
13 Inkscape::XML::Node const *LCA(Inkscape::XML::Node const *a, Inkscape::XML::Node const *b);
15 /**
16  * Returns a child of \a ancestor such that ret is itself an ancestor of \a descendent.
17  *
18  * The current version returns NULL if ancestor or descendent is NULL, though future versions may
19  * call g_log.  Please update this comment if you rely on the current behaviour.
20  */
21 Inkscape::XML::Node const *AncetreFils(Inkscape::XML::Node const *descendent, Inkscape::XML::Node const *ancestor);
23 Inkscape::XML::Node *AncetreFils(Inkscape::XML::Node *descendent, Inkscape::XML::Node *ancestor);
25 #endif // SEEN_XML_REPR_SOTRING_H
26 /*
27   Local Variables:
28   mode:c++
29   c-file-style:"stroustrup"
30   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
31   indent-tabs-mode:nil
32   fill-column:99
33   End:
34 */
35 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :