Beispiel #1
0
uint32
View::CountChildren(bool deep) const
{
    uint32 count = 0;
    for (View* child = FirstChild(); child; child = child->NextSibling()) {
        count++;
        if (deep) {
            count += child->CountChildren(deep);
        }
    }
    return count;
}