Tanl Linguistic Pipeline

Parser::ParserPipePython Struct Reference
[Dependency Parser]

A pipe that parses sentences from a Python iterator. More...

#include <PyPipe.h>

Inheritance diagram for Parser::ParserPipePython:
Tanl::Enumerator< Sentence * > Tanl::Disposable Tanl::Disposable

List of all members.

Public Member Functions

 ParserPipePython (Parser &parser, PyObject *pit)
 Use a Python enumerator pit as source of sentences.
bool MoveNext ()
 Advances to the next element of the collection.
SentenceCurrent ()
void Dispose ()
 This is to be called by SWIG when releasing the object.

Detailed Description

A pipe that parses sentences from a Python iterator.


Constructor & Destructor Documentation

Parser::ParserPipePython::ParserPipePython ( Parser parser,
PyObject *  pit 
)

Use a Python enumerator pit as source of sentences.


Member Function Documentation

Sentence * Parser::ParserPipePython::Current (  )  [virtual]
void Parser::ParserPipePython::Dispose (  )  [virtual]

This is to be called by SWIG when releasing the object.

Release the parser object and then call destructor.

Reimplemented from Tanl::Disposable.

bool Parser::ParserPipePython::MoveNext (  )  [virtual]

Advances to the next element of the collection.

Returns:
true if there is another item available.

Implements Tanl::Enumerator< Sentence * >.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.