ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
meta::sequence::sequence_analyzer::basic_collector< Analyzer > Class Template Reference

Implementation-detail collector. More...

Inheritance diagram for meta::sequence::sequence_analyzer::basic_collector< Analyzer >:
meta::sequence::sequence_analyzer::collector

Public Member Functions

 basic_collector (Analyzer *analyzer, observation *obs)
 Creates the collector with the given analyzer. More...
 
- Public Member Functions inherited from meta::sequence::sequence_analyzer::collector
 collector (observation *obs)
 Constructs the collector over a given observation. More...
 
 ~collector ()
 Writes all analyzed information out to the observation.
 
virtual void add (const std::string &feat, double amount)
 Adds a new feature to this observation. More...
 

Protected Member Functions

virtual feature_id feature (const std::string &feat)
 

Protected Attributes

Analyzer * analyzer_
 back-pointer to the analyzer for this collector
 
- Protected Attributes inherited from meta::sequence::sequence_analyzer::collector
observationobs_
 the observation we are collecting data for
 
observation::feature_vector feats_
 the feature vector that will be placed into the observation
 

Detailed Description

template<class Analyzer>
class meta::sequence::sequence_analyzer::basic_collector< Analyzer >

Implementation-detail collector.

Constructor & Destructor Documentation

template<class Analyzer>
meta::sequence::sequence_analyzer::basic_collector< Analyzer >::basic_collector ( Analyzer *  analyzer,
observation obs 
)
inline

Creates the collector with the given analyzer.

Parameters
analyzerThe analyzer for this collector
obsThe observation to be analyzed

Member Function Documentation

template<class Analyzer>
virtual feature_id meta::sequence::sequence_analyzer::basic_collector< Analyzer >::feature ( const std::string &  feat)
inlineprotectedvirtual
Parameters
featThe feature to obtain an id for
Returns
the feature_id for this feature

Implements meta::sequence::sequence_analyzer::collector.


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