# ace::NGramHashCounter Class Reference

Class provides hashing function for N-grams instances. More...

`#include <ngrams.h>`

List of all members.

## Static Public Member Functions
static size_t | count_hash (const NGram *gram)
| Function counts hash for given N-gram.
static bool | check (ngram_size_t n)
## Static Private Attributes
static const size_t | _seed = 0xdeadbeef
| "Random" seed.

## Detailed Description

Class provides hashing function for N-grams instances.

## Member Function Documentation

size_t ace::NGramHashCounter::count_hash | ( | const NGram * | gram | ) | `[static]`

Function counts hash for given N-gram.

Parameters:

  | gram | Pointer to N-gram to be hashed.

Returns:
  Hash for given N-gram.

bool ace::NGramHashCounter::check | ( | ngram_size_t | n | ) | `[static]`

## Member Data Documentation

const size_t ace::NGramHashCounter::_seed = 0xdeadbeef`[static, private]`

"Random" seed.

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

- proto/Source/ngrams.h
- proto/Source/ngrams.cpp