|
presage 0.9.1
|
#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 &output, const Ngram &b) |
| Ngram::Ngram | ( | const int | N | ) |
Definition at line 27 of file ngram.cpp.
References N, Ngram(), and ngrams.
Referenced by Ngram(), operator<(), operator<<, and operator=().


| Ngram::~Ngram | ( | ) |
| int Ngram::getN | ( | ) | const |
| std::string Ngram::getNgram | ( | const int | n | ) | const |
Definition at line 73 of file ngram.cpp.
References getNgram(), N, and ngrams.
Referenced by getNgram().


| bool Ngram::operator< | ( | const Ngram & | other | ) | const |
Definition at line 51 of file ngram.cpp.
References N, Ngram(), ngrams, and operator<().
Referenced by operator<().


Definition at line 39 of file ngram.cpp.
References N, Ngram(), ngrams, and operator=().
Referenced by operator=().


| void Ngram::setNgram | ( | const int | n, |
| const std::string | str ) |
Definition at line 79 of file ngram.cpp.
References N, ngrams, and setNgram().
Referenced by setNgram().


| std::string Ngram::toString | ( | ) | const |
Definition at line 64 of file ngram.cpp.
References N, ngrams, and toString().
Referenced by operator<<, and toString().


|
friend |
Definition at line 90 of file ngram.cpp.
References Ngram(), and toString().
|
private |
Definition at line 50 of file ngram.h.
Referenced by getN(), getNgram(), Ngram(), operator<(), operator=(), setNgram(), and toString().
|
private |
Definition at line 51 of file ngram.h.
Referenced by getNgram(), Ngram(), operator<(), operator=(), setNgram(), toString(), and ~Ngram().