A list of Document Frequency Elements (the main part of an inverted file) More...
#include <CDocumentFrequencyList.h>
Public Types | |
typedef CDocumentFrequencyElement * | iterator |
mimicking STL iterator is simple pointer | |
typedef CDocumentFrequencyElement const * | const_iterator |
mimicking STL const_iterator is simple const pointer | |
Public Member Functions | |
CDocumentFrequencyList (size_t inSize) | |
Constructor. | |
CDocumentFrequencyList () | |
Constructor. | |
~CDocumentFrequencyList () | |
Destructor. | |
bool | writeBinary (ostream &outStream) const |
A nice function for writing the whole list as binary (as opposed to human readable ascii) into a file. | |
bool | readBinary (istream &inStream) |
A nice function for reading the whole list as binary (as opposed to human readable ascii) from a file. | |
iterator | begin () |
mimicking STL | |
iterator | end () |
mimicking STL | |
const_iterator | begin () const |
mimicking STL | |
const_iterator | end () const |
mimicking STL | |
size_t | size () const |
mimicking STL | |
void | setEnd (CDocumentFrequencyElement *) |
to set the end of this |
A list of Document Frequency Elements (the main part of an inverted file)
CDocumentFrequencyList::CDocumentFrequencyList | ( | size_t | inSize | ) |
Constructor.
CDocumentFrequencyList::CDocumentFrequencyList | ( | ) |
Constructor.
CDocumentFrequencyList::~CDocumentFrequencyList | ( | ) |
Destructor.
bool CDocumentFrequencyList::readBinary | ( | istream & | inStream | ) |
A nice function for reading the whole list as binary (as opposed to human readable ascii) from a file.
bool CDocumentFrequencyList::writeBinary | ( | ostream & | outStream | ) | const |
A nice function for writing the whole list as binary (as opposed to human readable ascii) into a file.