KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
spear::EdgeParser< T > Class Template Reference

#include <EdgeParser.h>

Public Member Functions

 EdgeParser (IStream &syn_stream)
 construct a parser object with text input 'syn_stream' More...
 
spear::RCIPtr< T > parseEdge ()
 parse the next edge in the stream More...
 

Detailed Description

template<class T>
class spear::EdgeParser< T >

Parses an edge of type T. The type T must have these methods: setLabel(), setWord(), addChild(), and optionally setHead() to enable functionality for reading in head marker indices from the input stream

Constructor & Destructor Documentation

template<class T >
spear::EdgeParser< T >::EdgeParser ( IStream syn_stream)

construct a parser object with text input 'syn_stream'

Implementation of member functions.

Member Function Documentation

template<class T >
spear::RCIPtr< T > spear::EdgeParser< T >::parseEdge ( )

parse the next edge in the stream

Returns
a pointer to an edge object of type T

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