# ace::DataFileStats Struct Reference

Class implements simple statistics counter. More...

`#include <stats.h>`

Inherited by ace::NamedDataFileStats.

List of all members.

## Public Member Functions
| DataFileStats (void)
| Default constructor initializes all statistics with 0 values.
DataFileStats & | operator+= (const DataFileStats &rhs)
## Public Attributes
size_t | words
| Words counter.
size_t | sentences
| Sentences counter.
struct ace::DataFileStats::NGramsStats | ngrams
| N-grams counter.
## Classes
struct | NGramsStats
| N-grams counter. More...

## Detailed Description

Class implements simple statistics counter.

## Constructor & Destructor Documentation

ace::DataFileStats::DataFileStats | ( | void |  | ) | `[inline]`

Default constructor initializes all statistics with 0 values.

## Member Function Documentation

DataFileStats& ace::DataFileStats::operator+= | ( | const DataFileStats & | rhs | ) | `[inline]`

Parameters:

  | rhs | DataFileStats object to be added to current instance.

Returns:
  DataFileStats object with all fields incremented by values of passed stats.

## Member Data Documentation

size_t ace::DataFileStats::words

Words counter.

size_t ace::DataFileStats::sentences

Sentences counter.

struct ace::DataFileStats::NGramsStats ace::DataFileStats::ngrams

N-grams counter.

E = P + F.

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

- proto/Source/stats.h