Main Page | Modules | Namespace List | Compound List | File List | Compound Members | File Members | Related Pages

FlexLevel Class Reference

manages a single level of flexation More...

#include <Flexform.h>

List of all members.

Public Member Functions

 FlexLevel (int anz)
 (obsolete) constructor

 FlexLevel (string **, int anz)
 ~FlexLevel ()
 default destructor

int getMaxLength ()
 returns length of longest string in level

int getMinLength ()
 returns length of shortest string in level

bool insertFlex (string *, string, int pos)
 inserts a new flexion object into level

bool insertFlex (JVerbalFlexion *)
 inserts one flexion objekt (as pointer) to level

vflexform findString (string &, int &level)
 searching for a specified string in a certain level

JVerbalFlexion * findString (string &suchstring, JVerbalFlexion *last_jvf)
 searching for a specified string in a flexion class it saves the occurances in a stack, of which the first object is returned

int findString (string &suchstring, JVerbalFlexion *last_jvf, int flex_offs)
 begins the search at an offset position

void Print ()
 prints grammatical spezification stdout

JVerbalFlexion * popHypo ()
 returns the next possible flexion of the stack and pops it


Private Types

typedef vector< JVerbalFlexion
>::iterator 
IT

Private Attributes

vector< JVerbalFlexion > m_verbflex
int m_MaxLength
int m_MinLength
int m_number_of_entries
stack< JVerbalFlexion * > m_hypo_stack

Friends

class DetLemma


Detailed Description

manages a single level of flexation

initalizes values of this level and calls onto the underlieng level of JFlexForm constructors

Parameters:
verben verbs to be added into the flexlevel
anz number of verbs (to make initialization of array easier)


Member Typedef Documentation

typedef vector<JVerbalFlexion>::iterator FlexLevel::IT [private]
 

iterator for m_verbflex


Constructor & Destructor Documentation

FlexLevel::FlexLevel (  int  anz  ) 
 

(obsolete) constructor

initalizes values of this level and calls onto the underlieng level of JFlexForm constructors

Parameters:
anz number of verbs (to make initialization of array easier)

FlexLevel::FlexLevel (  string **  ,
int  anz
) 
 

FlexLevel::~FlexLevel (   ) 
 

default destructor


Member Function Documentation

int FlexLevel::findString (  string &  suchstring,
JVerbalFlexion *  last_jvf,
int  flex_offs
) 
 

begins the search at an offset position

Parameters:
string that is in demand, level,
last_jvf pointer to the last JVerbalFlexion object found
flex_offs offset to start search
Returns:
offset, where

Todo:
returns only first occurance of the string could be changed to stack, but is it being used at all??

JVerbalFlexion * FlexLevel::findString (  string &  suchstring,
JVerbalFlexion *  last_jvf
) 
 

searching for a specified string in a flexion class it saves the occurances in a stack, of which the first object is returned

Parameters:
suchstring string that is in demand, level,
last_jvf pointer to the last JVerbalFlexion object found
Returns:
pointer to the JVerbalFlexion object, in which the string was found NULL if not found /**

vflexform FlexLevel::findString (  string &  suchstring,
int &  level
) 
 

searching for a specified string in a certain level

Parameters:
suchstring string that is in demand,
level,level in which the string is to be searched
Returns:
(vflexform) : form of the string

int FlexLevel::getMaxLength (   )  [inline]
 

returns length of longest string in level

Returns:
value of m_MaxLength member variable

int FlexLevel::getMinLength (   )  [inline]
 

returns length of shortest string in level

Returns:
value of m_MinLength member variable

bool FlexLevel::insertFlex (  JVerbalFlexion *  verbflex  ) 
 

inserts one flexion objekt (as pointer) to level

Parameters:
verbflex pointer to the flexion object to be inserted
Returns:
(bool) true : if successful

bool FlexLevel::insertFlex (  string *  verben,
string  name,
int  pos
) 
 

inserts a new flexion object into level

Parameters:
pointer to the list of flexion strings, name and position
Returns:
(bool) true : if successful

JVerbalFlexion * FlexLevel::popHypo (   ) 
 

returns the next possible flexion of the stack and pops it

Returns:
pointer to the next JVerbalFlexion object on the stack NULL if not existant

void FlexLevel::Print (   ) 
 

prints grammatical spezification stdout

prints the content of the level by calling the print function of verb flexion classes


Friends And Related Function Documentation

friend class DetLemma [friend]
 


Member Data Documentation

stack<JVerbalFlexion*> FlexLevel::m_hypo_stack [private]
 

stack for storing all the hypothesis of one level temporarily

int FlexLevel::m_MaxLength [private]
 

length of longest string in level

int FlexLevel::m_MinLength [private]
 

length of shortest string in level

int FlexLevel::m_number_of_entries [private]
 

number of entries in level

vector<JVerbalFlexion> FlexLevel::m_verbflex [private]
 

vector storing all the grammatical information of one level


The documentation for this class was generated from the following files:
Generated on Mon Aug 18 19:27:10 2003 for LeJa by doxygen 1.3.3