Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::ClassificationEvent< T, I, C > Class Template Reference

#include <Classifier.h>

Inheritance diagram for prapi::ClassificationEvent< T, I, C >:

Object List of all members.

Detailed Description

template<class T, class I = std::string, class C = int>
class prapi::ClassificationEvent< T, I, C >

An event for informing interested listeners of the state of the classification.


Public Methods

 ClassificationEvent (Sample< T, I, C > &sample, int index)
 Create a new ClassificationEvent.

Sample< T, I, C > getSample (void) const
 Get a copy of the sample that was just classified.

int getIndex (void) const
 Get the sample's index.


Constructor & Destructor Documentation

template<class T, class I = std::string, class C = int>
prapi::ClassificationEvent< T, I, C >::ClassificationEvent Sample< T, I, C > &    sample,
int    index
[inline]
 

Create a new ClassificationEvent.

Parameters:
sample  a reference to the sample that was just classified
index  the index of the sample


Member Function Documentation

template<class T, class I = std::string, class C = int>
int prapi::ClassificationEvent< T, I, C >::getIndex void    const [inline]
 

Get the sample's index.

Returns:
how many samples have been classified this far? The first sample will be accompanied with index 0.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.