FreeLing  4.0
Public Member Functions | Protected Attributes
freeling::factory< T > Class Template Reference

This template is used by numbers, quantities, dates, and ner classes to dinamycally create the appropriate subclass of numbers_module, quantities_module, dates_module, or ner_module (according to received options). More...

#include <factory.h>

Inheritance diagram for freeling::factory< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 factory ()
 Constructor, the module is created by the class deriving the factory.
 ~factory ()
 Destructor, delete the module.
void analyze (sentence &s) const
 analyze given sentence, calling the created module
void analyze (std::list< sentence > &ls) const
 analyze given sentences, calling the created module
sentence analyze (const sentence &s) const
 analyze given sentence, calling the created module, return copy
std::list< sentenceanalyze (const std::list< sentence > &ls) const
 analyze given sentences, calling the created module, return copy
void analyze (document &d) const
 analyze given document, calling the created module
document analyze (const document &d) const
 analyze given document, calling the created module, return copy

Protected Attributes

T * who
 remember which module is doing the real work.

Detailed Description

template<class T>
class freeling::factory< T >

This template is used by numbers, quantities, dates, and ner classes to dinamycally create the appropriate subclass of numbers_module, quantities_module, dates_module, or ner_module (according to received options).


Constructor & Destructor Documentation

template<class T>
freeling::factory< T >::factory ( ) [inline]

Constructor, the module is created by the class deriving the factory.

template<class T>
freeling::factory< T >::~factory ( ) [inline]

Destructor, delete the module.


Member Function Documentation

template<class T>
void freeling::factory< T >::analyze ( sentence s) const [inline]

analyze given sentence, calling the created module

template<class T>
void freeling::factory< T >::analyze ( std::list< sentence > &  ls) const [inline]

analyze given sentences, calling the created module

template<class T>
sentence freeling::factory< T >::analyze ( const sentence s) const [inline]

analyze given sentence, calling the created module, return copy

template<class T>
std::list<sentence> freeling::factory< T >::analyze ( const std::list< sentence > &  ls) const [inline]

analyze given sentences, calling the created module, return copy

template<class T>
void freeling::factory< T >::analyze ( document d) const [inline]

analyze given document, calling the created module

template<class T>
document freeling::factory< T >::analyze ( const document d) const [inline]

analyze given document, calling the created module, return copy


Member Data Documentation

template<class T>
T* freeling::factory< T >::who [protected]

remember which module is doing the real work.

Referenced by freeling::factory< quantities_module >::analyze(), and freeling::factory< quantities_module >::~factory().


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