presage
0.8.7
|
#include <ngram.h>
Public Member Functions | |
Ngram (const int N) | |
~Ngram () | |
int | getN () const |
std::string | getNgram (const int n) const |
void | setNgram (const int n, const std::string str) |
bool | operator< (const Ngram &) const |
Ngram & | operator= (const Ngram &) |
std::string | toString () const |
Private Attributes | |
int | N |
std::string * | ngrams |
Friends | |
std::ostream & | operator<< (std::ostream &, const Ngram &) |
Ngram::Ngram | ( | const int | N | ) |
Ngram::~Ngram | ( | ) |
int Ngram::getN | ( | ) | const |
std::string Ngram::getNgram | ( | const int | n | ) | const |
bool Ngram::operator< | ( | const Ngram & | other | ) | const |
void Ngram::setNgram | ( | const int | n, |
const std::string | str | ||
) |
std::string Ngram::toString | ( | ) | const |
Definition at line 64 of file ngram.cpp.
Referenced by operator<<().
std::ostream& operator<< | ( | std::ostream & | output, |
const Ngram & | b | ||
) | [friend] |
int Ngram::N [private] |
Definition at line 50 of file ngram.h.
Referenced by getN(), getNgram(), Ngram(), operator<(), operator=(), setNgram(), and toString().
std::string* Ngram::ngrams [private] |
Definition at line 51 of file ngram.h.
Referenced by getNgram(), Ngram(), operator<(), operator=(), setNgram(), toString(), and ~Ngram().