Go to the documentation of this file.
6 #ifndef URL_CLASSIFICATION_RESULT_H
7 #define URL_CLASSIFICATION_RESULT_H
23 class urlclassification_result_p;
bool isCategorized() const
Returns whether or not the URL matched one or more categories.
UrlClassificationResult at(DCA_INDEX_TYPE index) const
Returns one result of the matched results (if any) with the given index.
bool isUnknownUrl() const
Returns whether a URL is known or unknown. A URL is unknown if it is not contained in the database.
DCA_CATEGORY_ID_TYPE UrlClassificationResult
The item of an URL classification result is typedef'd as DCA_CATEGORY_ID_TYPE.
Results of an URL classification.
bool contains(DCA_CATEGORY_ID_TYPE catid) const
Fast method to see whether the results contain a given category or not.
int DCA_CATEGORY_ID_TYPE
Type for category ids.
size_t DCA_INDEX_TYPE
Type for index access (used for arrays and collections).
size_t DCA_SIZE_TYPE
Type for size (used for size of array and collections).
UrlClassificationResult operator[](DCA_INDEX_TYPE index) const
Similar to at() but allows a more C++ style access.
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
DCA_SIZE_TYPE size() const
Returns the number of results in the container.