FreeLing  4.0
Public Member Functions | Protected Attributes | Friends
freeling::basic_tree_iterator< T, N > Class Template Reference

############################################################# /// More...

#include <tree.h>

Inheritance diagram for freeling::basic_tree_iterator< T, N >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 basic_tree_iterator ()
 =================================================== Iterator operations implementations ===================================================
 ~basic_tree_iterator ()
const T & operator* () const
 basic const iterator operations
const T * operator-> () const
const T * get_info () const
 emulate operator -> for java/python/perl APIS
bool operator== (const basic_tree_iterator &t) const
bool operator!= (const basic_tree_iterator &t) const
bool is_defined () const
 check whether the iterator points somewhere.
bool is_root () const
 access to tree operations via iterator
bool empty () const
bool has_ancestor (const tree< T > &p) const
unsigned int num_children () const
const_tree_preorder_iterator< T > get_parent () const
 get iterator to parent node
const_tree_sibling_iterator< T > nth_child (unsigned int n) const
 get nth child
const tree< T > & nth_child_ref (unsigned int n) const
const_tree_preorder_iterator< T > begin () const
 iterators
const_tree_preorder_iterator< T > end () const
const_tree_sibling_iterator< T > sibling_begin () const
const_tree_sibling_iterator< T > sibling_end () const
const_tree_sibling_iterator< T > sibling_rbegin () const
const_tree_sibling_iterator< T > sibling_rend () const

Protected Attributes

N * tr

Friends

class tree< T >

Detailed Description

template<class T, class N>
class freeling::basic_tree_iterator< T, N >

############################################################# ///

TREE ITERATORS

############################################################# /// Generic const iterator, to derive all the others. It has what is common to all iterators (the pointer, the const operations, and access to const operations of the underlying tree


Constructor & Destructor Documentation

template<class T , class N >
freeling::basic_tree_iterator< T, N >::basic_tree_iterator ( )

=================================================== Iterator operations implementations ===================================================

---------------------------------------------------------------------------------- basic_tree_iterator -----------------------------------------------------------

template<class T , class N >
freeling::basic_tree_iterator< T, N >::~basic_tree_iterator ( )

Member Function Documentation

template<class T , class N >
const_tree_preorder_iterator< T > freeling::basic_tree_iterator< T, N >::begin ( ) const

iterators

template<class T , class N >
bool freeling::basic_tree_iterator< T, N >::empty ( ) const
template<class T , class N >
const_tree_preorder_iterator< T > freeling::basic_tree_iterator< T, N >::end ( ) const
template<class T , class N >
const T * freeling::basic_tree_iterator< T, N >::get_info ( ) const

emulate operator -> for java/python/perl APIS

Reimplemented in freeling::basic_nonconst_tree_iterator< T >.

template<class T , class N >
const_tree_preorder_iterator< T > freeling::basic_tree_iterator< T, N >::get_parent ( ) const
template<class T, class N >
bool freeling::basic_tree_iterator< T, N >::has_ancestor ( const tree< T > &  p) const
template<class T , class N >
bool freeling::basic_tree_iterator< T, N >::is_defined ( ) const

check whether the iterator points somewhere.

template<class T , class N >
bool freeling::basic_tree_iterator< T, N >::is_root ( ) const

access to tree operations via iterator

---------------------------------------------------------------------------------- const tree operations accessed via the iterator ------------------------------------------

Referenced by freeling::parse_tree::C_commands(), freeling::mention::mention(), and freeling::mention::set_iterators().

template<class T , class N >
const_tree_sibling_iterator< T > freeling::basic_tree_iterator< T, N >::nth_child ( unsigned int  n) const

get nth child

template<class T , class N >
const tree< T > & freeling::basic_tree_iterator< T, N >::nth_child_ref ( unsigned int  n) const
template<class T , class N >
unsigned int freeling::basic_tree_iterator< T, N >::num_children ( ) const
template<class T , class N >
bool freeling::basic_tree_iterator< T, N >::operator!= ( const basic_tree_iterator< T, N > &  t) const
template<class T , class N >
const T & freeling::basic_tree_iterator< T, N >::operator* ( ) const

basic const iterator operations

Reimplemented in freeling::basic_nonconst_tree_iterator< T >.

template<class T , class N >
const T * freeling::basic_tree_iterator< T, N >::operator-> ( ) const
template<class T , class N >
bool freeling::basic_tree_iterator< T, N >::operator== ( const basic_tree_iterator< T, N > &  t) const
template<class T , class N >
const_tree_sibling_iterator< T > freeling::basic_tree_iterator< T, N >::sibling_begin ( ) const
template<class T , class N >
const_tree_sibling_iterator< T > freeling::basic_tree_iterator< T, N >::sibling_end ( ) const
template<class T , class N >
const_tree_sibling_iterator< T > freeling::basic_tree_iterator< T, N >::sibling_rbegin ( ) const
template<class T , class N >
const_tree_sibling_iterator< T > freeling::basic_tree_iterator< T, N >::sibling_rend ( ) const

Friends And Related Function Documentation

template<class T, class N>
friend class tree< T > [friend]

Member Data Documentation

template<class T, class N>
N* freeling::basic_tree_iterator< T, N >::tr [protected]

The documentation for this class was generated from the following file: