FreeLing  4.0
Public Member Functions | Private Attributes | Friends
freeling::word::iterator Class Reference

iterator over word analysis (either all, only selected, only unselected) More...

#include <language.h>

Inheritance diagram for freeling::word::iterator:
Inheritance graph
[legend]
Collaboration diagram for freeling::word::iterator:
Collaboration graph
[legend]

List of all members.

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)
iteratoroperator++ ()
 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

Detailed Description

iterator over word analysis (either all, only selected, only unselected)


Constructor & Destructor Documentation

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

copy

Copy.

References ibeg, iend, kbest, and type.

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)


Member Function Documentation

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.


Friends And Related Function Documentation

friend class word::const_iterator [friend]

Member Data Documentation

Iterator range begin.

Referenced by freeling::word::const_iterator::const_iterator(), and iterator().

Iterator range end.

Referenced by freeling::word::const_iterator::const_iterator(), and iterator().

Which of k-best sequences proposed by the tagger is the iterator associated with.

Referenced by freeling::word::const_iterator::const_iterator(), and iterator().

Iterator type (ALL,SELECTED,UNSELECTED)

Referenced by freeling::word::const_iterator::const_iterator(), and iterator().


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