Concordia
Example Class Reference

#include <example.hpp>

Public Member Functions

 Example (const std::string &sentence, const SUFFIX_MARKER_TYPE &id) throw (ConcordiaException)
 
virtual ~Example ()
 
std::string getSentence () const
 
SUFFIX_MARKER_TYPE getId () const
 

Detailed Description

Class representing a single sentence to be added into index along with its id. For more info see Simple substring lookup.

Constructor & Destructor Documentation

Example::Example ( const std::string &  sentence,
const SUFFIX_MARKER_TYPE &  id 
)
throw (ConcordiaException
)
explicit

Constructor.

Parameters
sentencesentence to be added to index
idid of this sentence
Example::~Example ( )
virtual

Destructor.

Member Function Documentation

SUFFIX_MARKER_TYPE Example::getId ( ) const
inline

Getter for sentence id.

Returns
sentence id
std::string Example::getSentence ( ) const
inline

Getter for sentence.

Returns
sentence

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