FreeLing
4.0
|
iterator over word analysis (either all, only selected, only unselected) More...
#include <language.h>
Public Member Functions | |
iterator () | |
empty constructor | |
iterator (const word::iterator &) | |
copy | |
iterator (const std::list< analysis >::iterator &) | |
Constructor from std::list iterator. | |
iterator (const std::list< analysis >::iterator &, const std::list< analysis >::iterator &, const std::list< analysis >::iterator &, int, int k=0) | |
Constructor for filtered iterators (selected/unselected) | |
iterator & | operator++ () |
Generic increment, for all cases. | |
iterator | operator++ (int) |
Generic postincrement, for all cases. | |
Private Attributes | |
std::list< analysis >::iterator | ibeg |
Iterator range begin. | |
std::list< analysis >::iterator | iend |
Iterator range end. | |
int | type |
Iterator type (ALL,SELECTED,UNSELECTED) | |
int | kbest |
Which of k-best sequences proposed by the tagger is the iterator associated with. | |
Friends | |
class | word::const_iterator |
iterator over word analysis (either all, only selected, only unselected)
empty constructor
word::iterator may act as basic list iterator over all /// analysis of a word, or may act as a filtered iterator, /// providing access only to selected/unselected analysis ///
Empty constructor
freeling::word::iterator::iterator | ( | const word::iterator & | x | ) |
freeling::word::iterator::iterator | ( | const std::list< analysis >::iterator & | ) |
Constructor from std::list iterator.
freeling::word::iterator::iterator | ( | const std::list< analysis >::iterator & | , |
const std::list< analysis >::iterator & | , | ||
const std::list< analysis >::iterator & | , | ||
int | , | ||
int | k = 0 |
||
) |
Constructor for filtered iterators (selected/unselected)
word::iterator & freeling::word::iterator::operator++ | ( | ) |
Generic increment, for all cases.
Generic preincrement, for all cases.
References freeling::word::ALL, and freeling::word::SELECTED.
word::iterator freeling::word::iterator::operator++ | ( | int | ) |
Generic postincrement, for all cases.
friend class word::const_iterator [friend] |
std::list<analysis>::iterator freeling::word::iterator::ibeg [private] |
Iterator range begin.
Referenced by freeling::word::const_iterator::const_iterator(), and iterator().
std::list<analysis>::iterator freeling::word::iterator::iend [private] |
Iterator range end.
Referenced by freeling::word::const_iterator::const_iterator(), and iterator().
int freeling::word::iterator::kbest [private] |
Which of k-best sequences proposed by the tagger is the iterator associated with.
Referenced by freeling::word::const_iterator::const_iterator(), and iterator().
int freeling::word::iterator::type [private] |
Iterator type (ALL,SELECTED,UNSELECTED)
Referenced by freeling::word::const_iterator::const_iterator(), and iterator().