strusAnalyzer  0.17
Public Member Functions | List of all members
strus::analyzer::ContentStatisticsItem Class Reference

Defines an item describing the statistics in a collection. More...

#include <contentStatisticsItem.hpp>

Public Member Functions

 ContentStatisticsItem (const std::string &select_, const std::string &type_, const std::string &example_, int df_, int tf_)
 
 ContentStatisticsItem (const ContentStatisticsItem &o)
 
const std::string & select () const
 Get the select expression. More...
 
const std::string & type () const
 Get the type assigned to it. More...
 
const std::string & example () const
 Get an example that led to this item. More...
 
int df () const
 Get the number of documents in the collection this item appears in. More...
 
int tf () const
 Get the number of appearances in the collection this item appears in. More...
 
void setExample (const std::string &value)
 
void setType (const std::string &type_)
 
void incr_df (int df_)
 
void incr_tf (int tf_)
 

Detailed Description

Defines an item describing the statistics in a collection.

Constructor & Destructor Documentation

strus::analyzer::ContentStatisticsItem::ContentStatisticsItem ( const std::string &  select_,
const std::string &  type_,
const std::string &  example_,
int  df_,
int  tf_ 
)
inline
strus::analyzer::ContentStatisticsItem::ContentStatisticsItem ( const ContentStatisticsItem o)
inline

Member Function Documentation

int strus::analyzer::ContentStatisticsItem::df ( ) const
inline

Get the number of documents in the collection this item appears in.

const std::string& strus::analyzer::ContentStatisticsItem::example ( ) const
inline

Get an example that led to this item.

void strus::analyzer::ContentStatisticsItem::incr_df ( int  df_)
inline
void strus::analyzer::ContentStatisticsItem::incr_tf ( int  tf_)
inline
const std::string& strus::analyzer::ContentStatisticsItem::select ( ) const
inline

Get the select expression.

void strus::analyzer::ContentStatisticsItem::setExample ( const std::string &  value)
inline
void strus::analyzer::ContentStatisticsItem::setType ( const std::string &  type_)
inline
int strus::analyzer::ContentStatisticsItem::tf ( ) const
inline

Get the number of appearances in the collection this item appears in.

const std::string& strus::analyzer::ContentStatisticsItem::type ( ) const
inline

Get the type assigned to it.


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