FreeLing  3.1
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 (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
list< sentenceanalyze (const list< sentence > &ls) const
 analyze given sentence, 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

Referenced by freeling::maco::analyze().

template<class T>
void freeling::factory< T >::analyze ( 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>
list<sentence> freeling::factory< T >::analyze ( const list< sentence > &  ls) const [inline]

analyze given sentence, 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.


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