dca_interface  6.3.4
dca_ipr::IprClassificationResults Class Reference

#include <ipr_classification_results.h>

Detailed Description

Definition of the IprClassificationResults class.

The IprClassificationResults class is a collection of IprClassificationResult objects. An IPR classification returns this class if successful.

See also
IprClassifier

Definition at line 28 of file ipr_classification_results.h.

Public Member Functions

bool isCategorized () const
 If the classification returned a result this function returns true. More...
 
DCA_SIZE_TYPE size () const
 Returns the number of classification results. More...
 
IprClassificationResult at (DCA_INDEX_TYPE index) const
 Returns the classification result with the given index. More...
 
IprClassificationResult operator[] (DCA_INDEX_TYPE index) const
 Identical to the at() function but allows a more C++ style access. More...
 

Member Function Documentation

◆ isCategorized()

bool dca_ipr::IprClassificationResults::isCategorized ( ) const

If the classification returned a result this function returns true.

Returns
Whether or not the classification returned a result.

◆ size()

DCA_SIZE_TYPE dca_ipr::IprClassificationResults::size ( ) const

Returns the number of classification results.

Returns
The number of classification results, or zero if no results are available.

◆ at()

IprClassificationResult dca_ipr::IprClassificationResults::at ( DCA_INDEX_TYPE  index) const

Returns the classification result with the given index.

Parameters
[in]indexThe index of the item to retrieve
Returns
The result item for the given index in the container.

◆ operator[]()

IprClassificationResult dca_ipr::IprClassificationResults::operator[] ( DCA_INDEX_TYPE  index) const

Identical to the at() function but allows a more C++ style access.

Parameters
[in]indexThe index of the item to retrieve
Returns
The result item for the given index in the container.

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