FreeLing  4.0
Public Member Functions | Protected Attributes
freeling::rule Class Reference

Class rule implements a rule of a grammar. More...

#include <grammar.h>

Inheritance diagram for freeling::rule:
Inheritance graph
[legend]
Collaboration diagram for freeling::rule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 rule (const std::wstring &, const std::list< std::wstring > &, const int)
 Constructors of the subclass rule.
 rule (const rule &r)
 rule ()
ruleoperator= (const rule &)
void set_governor (const int)
 set rule governor
unsigned int get_governor (void) const
 get rule governor
std::wstring get_head () const
 get rule head.
std::list< std::wstring > get_right () const
 get right part of the rule.

Protected Attributes

std::wstring head
 Head of the rule.
std::list< std::wstring > right
 Right part of the rule.
int gov
 Position of the rule Governor of.

Detailed Description

Class rule implements a rule of a grammar.


Constructor & Destructor Documentation

freeling::rule::rule ( const std::wstring &  ,
const std::list< std::wstring > &  ,
const int   
)

Constructors of the subclass rule.

freeling::rule::rule ( const rule r)

Member Function Documentation

unsigned int freeling::rule::get_governor ( void  ) const

get rule governor

std::wstring freeling::rule::get_head ( ) const

get rule head.

std::list<std::wstring> freeling::rule::get_right ( ) const

get right part of the rule.

rule& freeling::rule::operator= ( const rule )

set rule governor


Member Data Documentation

int freeling::rule::gov [protected]

Position of the rule Governor of.

std::wstring freeling::rule::head [protected]

Head of the rule.

std::list<std::wstring> freeling::rule::right [protected]

Right part of the rule.


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