strusAnalyzer  0.17
Public Member Functions | List of all members
strus::ContentIteratorInterface Class Referenceabstract

Defines an iterator on content provided by a segmenter. More...

#include <contentIteratorInterface.hpp>

Public Member Functions

virtual ~ContentIteratorInterface ()
 Destructor. More...
 
virtual bool getNext (const char *&expression, std::size_t &expressionsize, const char *&segment, std::size_t &segmentsize)=0
 Fetch next content item. More...
 

Detailed Description

Defines an iterator on content provided by a segmenter.

Note
Used for content statistics analysis

Constructor & Destructor Documentation

virtual strus::ContentIteratorInterface::~ContentIteratorInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool strus::ContentIteratorInterface::getNext ( const char *&  expression,
std::size_t &  expressionsize,
const char *&  segment,
std::size_t &  segmentsize 
)
pure virtual

Fetch next content item.

Parameters
[in]expressionselector scope expression of the chunk
[in]segmentsegment content of the chunk
Returns
true, if more, false on error or EOF
Note
returned chunks only valid after the call, owned by the segmenter

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