URL Class Reference

Statistics of a given URL. More...

#include <URL.h>

Inheritance diagram for URL:
Element

List of all members.

Public Member Functions

 URL (char *word, int wordNumber, int totalCount=0, int documentCount=0, FILE_POS_TYPE filePosition=0, int linkCount=0, int uniqueLinkCount=0)
 Intialise the class with the URL name and id.
 URL (FileIO *file)
 Read the URL statistics from a file.
void incrementTotalCount (void)
 Add to the number of links to this URL.
void incrementDocumentCount (void)
 Add to the number of documents that link to this URL.
void assignLinkCount (int links)
 Assign the number of links with this document.
void assignUniqueLinkCount (int links)
 Assign the number of unique links in this document.
int linkCount (void)
 Return links found with this document.
int uniqueLinkCount (void)
 Return unique links within the document.
int documentCount (void)
 Return appearing documents containing links to this url.
int totalCount (void)
 Return appearing links to this url.
void purge (FileIO *file)
 Save stats to the given file.
void salvage (FileIO *file)
 Read stats from the given file.
void operator= (const URL &url)
 Assign the URL stats to this class.

Friends

class CompareElements< URL >
class ElementList< URL >

Detailed Description

Statistics of a given URL.

This class is used to keep track of various statisitics (such as which documents the page URL links to) of a given URL.

Author
lapark
Revision
1.4
Date
2009/10/08 06:41:30
Id
URL.h,v 1.4 2009/10/08 06:41:30 lapark Exp

The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:18 2009 for textIR by  doxygen 1.6.1