Statistics of a given URL. More...
#include <URL.h>
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 > |
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.
1.6.1