DynGenPar
Dynamic Generalized Parser
Public Member Functions | Public Attributes | List of all members
DynGenPar::Term Struct Reference

term in the expression of a component of a PMCFG function More...

Public Member Functions

 Term ()
 dummy default constructor for bindings More...
 
 Term (int a, int c)
 
 Term (CatArg t)
 
bool isComponent () const
 
bool isToken () const
 
bool operator== (const Term &other) const
 needed for QList More...
 

Public Attributes

int arg
 
int component
 
Cat token
 

Detailed Description

term in the expression of a component of a PMCFG function

Definition at line 932 of file dyngenpar.h.

Constructor & Destructor Documentation

◆ Term() [1/3]

DynGenPar::Term::Term ( )
inline

dummy default constructor for bindings

Definition at line 934 of file dyngenpar.h.

◆ Term() [2/3]

DynGenPar::Term::Term ( int  a,
int  c 
)
inline

Definition at line 935 of file dyngenpar.h.

◆ Term() [3/3]

DynGenPar::Term::Term ( CatArg  t)
inline

Definition at line 936 of file dyngenpar.h.

Member Function Documentation

◆ isComponent()

bool DynGenPar::Term::isComponent ( ) const
inline

Definition at line 942 of file dyngenpar.h.

◆ isToken()

bool DynGenPar::Term::isToken ( ) const
inline

Definition at line 943 of file dyngenpar.h.

◆ operator==()

bool DynGenPar::Term::operator== ( const Term other) const
inline

needed for QList

Definition at line 945 of file dyngenpar.h.

Member Data Documentation

◆ arg

int DynGenPar::Term::arg

Definition at line 937 of file dyngenpar.h.

◆ component

int DynGenPar::Term::component

Definition at line 937 of file dyngenpar.h.

◆ token

Cat DynGenPar::Term::token

This is supposed to be a token in a standard PMCFG, though in the implementation, any context-free category will work.

Definition at line 941 of file dyngenpar.h.


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