예제 #1
0
파일: var_tree.cpp 프로젝트: qdk0901/vlc
int VarTree::getIndex( const Iterator& item )
{
    int index = 0;
    Iterator it;
    for( it = m_flat ? firstLeaf() : m_children.begin();
         it != m_children.end();
         it = m_flat ? getNextLeaf( it ) : getNextVisibleItem( it ) )
    {
        if( it == item )
            break;
        index++;
    }
    return (it == item) ? index : -1;
}
예제 #2
0
파일: Tree.hpp 프로젝트: giftnuss/libftl
	// iterating all nodes
	inline Ref<Node> first() const { return firstLeaf(); }
예제 #3
0
파일: var_tree.hpp 프로젝트: qdk0901/vlc
 /// Beginning of the children's list
 IteratorVisible begin()
 {
     return IteratorVisible(
            m_flat ? firstLeaf() : m_children.begin(), this );
 }