LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::Common::BagOfWords::IndexElementIterator Class Reference

An iterator on the bowText that returns IndexElements. More...

#include <linguisticProcessing/common/BagOfWords/indexElementIterator.h>

Public Member Functions

 IndexElementIterator (const BoWText &bowText, AbstractLexiconIdGenerator *idAccessor=0, const uint64_t maxCompoundSize=0, const uint64_t nbMaxPartialCompounds=1000)
 constructor
 
 ~IndexElementIterator ()
 
bool isAtEnd () const
 
const IndexElement & getElement () const
 
IndexElement getElement ()
 
IndexElementIterator & operator++ ()
 
IndexElementIterator operator++ (int)
 

Detailed Description

An iterator on the bowText that returns IndexElements.

Author
Besancon Romaric romar.nosp@m.ic.b.nosp@m.esanc.nosp@m.on@c.nosp@m.ea.fr
Date
Tue Feb 7 2006

Definition at line 26 of file indexElementIterator.h.

Constructor & Destructor Documentation

◆ IndexElementIterator()

Lima::Common::BagOfWords::IndexElementIterator::IndexElementIterator ( const BoWText &  bowText,
AbstractLexiconIdGenerator *  idAccessor = 0,
const uint64_t  maxCompoundSize = 0,
const uint64_t  nbMaxPartialCompounds = 1000 
)

constructor

Parameters
bowTextthe BoWText on which the iterator iterates
idAccessorobject which convert a string or an compound word in term id
maxCompoundSizemaximum size authorized for a compound: if size is exceeded the compound will not be accessed by the iterator (however, its partial compounds will be built and accessed if their size is less than maxCompoundSize). If set to zero, no limit to compound size.
nbMaxPartialCompoundsa parameter allowing to limit the number of partial complex tokens (avoid combinatorial explosion for too large compounds)

Definition at line 142 of file indexElementIterator.cpp.

◆ ~IndexElementIterator()

Lima::Common::BagOfWords::IndexElementIterator::~IndexElementIterator ( )

Definition at line 155 of file indexElementIterator.cpp.

Member Function Documentation

◆ getElement() [1/2]

IndexElement Lima::Common::BagOfWords::IndexElementIterator::getElement ( )

Definition at line 173 of file indexElementIterator.cpp.

◆ getElement() [2/2]

const IndexElement & Lima::Common::BagOfWords::IndexElementIterator::getElement ( ) const

◆ isAtEnd()

bool Lima::Common::BagOfWords::IndexElementIterator::isAtEnd ( ) const

Definition at line 162 of file indexElementIterator.cpp.

◆ operator++() [1/2]

IndexElementIterator & Lima::Common::BagOfWords::IndexElementIterator::operator++ ( )

Definition at line 289 of file indexElementIterator.cpp.

◆ operator++() [2/2]

IndexElementIterator Lima::Common::BagOfWords::IndexElementIterator::operator++ ( int  )

Definition at line 332 of file indexElementIterator.cpp.


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