presage 0.9.1
Ngram Class Reference

#include <ngram.h>

Collaboration diagram for Ngram:
Collaboration graph

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
 
Ngramoperator= (const Ngram &)
 
std::string toString () const
 

Private Attributes

int N
 
std::string * ngrams
 

Friends

std::ostream & operator<< (std::ostream &output, const Ngram &b)
 

Detailed Description

Definition at line 33 of file ngram.h.

Constructor & Destructor Documentation

◆ Ngram()

Ngram::Ngram ( const int N)

Definition at line 27 of file ngram.cpp.

References N, Ngram(), and ngrams.

Referenced by Ngram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Ngram()

Ngram::~Ngram ( )

Definition at line 34 of file ngram.cpp.

References ngrams, and ~Ngram().

Referenced by ~Ngram().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ getN()

int Ngram::getN ( ) const

Definition at line 85 of file ngram.cpp.

References getN(), and N.

Referenced by getN().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNgram()

std::string Ngram::getNgram ( const int n) const

Definition at line 73 of file ngram.cpp.

References getNgram(), N, and ngrams.

Referenced by getNgram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<()

bool Ngram::operator< ( const Ngram & other) const

Definition at line 51 of file ngram.cpp.

References N, ngrams, and operator<().

Referenced by operator<().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

Ngram & Ngram::operator= ( const Ngram & other)

Definition at line 39 of file ngram.cpp.

References N, ngrams, and operator=().

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNgram()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

std::string Ngram::toString ( ) const

Definition at line 64 of file ngram.cpp.

References N, ngrams, and toString().

Referenced by toString().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & output,
const Ngram & b )
friend

Definition at line 90 of file ngram.cpp.

Member Data Documentation

◆ N

int Ngram::N
private

Definition at line 50 of file ngram.h.

Referenced by getN(), getNgram(), Ngram(), operator<(), operator=(), setNgram(), and toString().

◆ ngrams

std::string* Ngram::ngrams
private

Definition at line 51 of file ngram.h.

Referenced by getNgram(), Ngram(), operator<(), operator=(), setNgram(), toString(), and ~Ngram().


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