Frog
Public Member Functions | List of all members
BracketLeaf Class Reference

#include <mbma_brackets.h>

Inheritance diagram for BracketLeaf:
Inheritance graph
[legend]
Collaboration diagram for BracketLeaf:
Collaboration graph
[legend]

Public Member Functions

 BracketLeaf (const RulePart &, int, TiCC::LogStream &)
 
 BracketLeaf (CLEX::Type, const icu::UnicodeString &, int, TiCC::LogStream &)
 
BracketLeafclone () const
 
icu::UnicodeString put (bool=true) const
 
icu::UnicodeString pretty_put () const
 
icu::UnicodeString morpheme () const
 
std::string inflection () const
 
std::string original () const
 
int infixpos () const
 
bool isglue () const
 
folia::Morpheme * createMorpheme (folia::Document *) const
 
folia::Morpheme * createMorpheme (folia::Document *, std::string &, int &) const
 
- Public Member Functions inherited from BaseBracket
 BaseBracket (CLEX::Type t, const std::vector< CLEX::Type > &R, int flag, TiCC::LogStream &l)
 
 BaseBracket (CLEX::Type t, int flag, TiCC::LogStream &l)
 
virtual ~BaseBracket ()
 
Status status () const
 
void set_status (const Status s)
 
virtual BaseBracketappend (BaseBracket *)
 
virtual bool isNested ()
 
virtual void resolveGlue ()
 
virtual void resolveLead ()
 
virtual void resolveTail ()
 
virtual void resolveMiddle ()
 
virtual void clearEmptyNodes ()
 
virtual Compound::Type compound () const
 
virtual Compound::Type getCompoundType ()
 
CLEX::Type tag () const
 
void setTag (CLEX::Type t)
 

Additional Inherited Members

- Public Attributes inherited from BaseBracket
std::vector< CLEX::TypeRightHand
 
- Protected Attributes inherited from BaseBracket
CLEX::Type cls
 
Status _status
 
int debugFlag
 
TiCC::LogStream & myLog
 

Constructor & Destructor Documentation

◆ BracketLeaf() [1/2]

BracketLeaf::BracketLeaf ( const RulePart p,
int  debug_flag,
TiCC::LogStream &  l 
)

create a BracketLeaf object from a RulePart

Parameters
pA Rulepart to create from
debug_flagthe debug value
la LogStream for messages

◆ BracketLeaf() [2/2]

BracketLeaf::BracketLeaf ( CLEX::Type  t,
const icu::UnicodeString &  morpheme,
int  debug_flag,
TiCC::LogStream &  l 
)

create a BracketLeaf object from a CLEX::Type and a morpheme

Parameters
tA CLEX::Type
morphemethe (Unicode) morpheme
debug_flagthe debug value
la LogStream for messages

Member Function Documentation

◆ clone()

BracketLeaf * BracketLeaf::clone ( ) const
virtual

make a copy of the BracketLeaf

Implements BaseBracket.

◆ createMorpheme() [1/2]

folia::Morpheme * BracketLeaf::createMorpheme ( folia::Document *  doc) const
virtual

use the data in the Leaf to create a folia::Morpheme node

Parameters
docThe FoLiA Document context

Implements BaseBracket.

◆ createMorpheme() [2/2]

folia::Morpheme * BracketLeaf::createMorpheme ( folia::Document *  doc,
std::string &  desc,
int &  cnt 
) const
virtual

use the data in the Leaf to create a folia::Morpheme node

Parameters
docThe FoLiA Document context
desca decriptien note to add
cnta counter for the number of handled morphemes

Implements BaseBracket.

◆ infixpos()

int BracketLeaf::infixpos ( ) const
inlinevirtual

return the position of an infix

Reimplemented from BaseBracket.

◆ inflection()

std::string BracketLeaf::inflection ( ) const
inlinevirtual

return the value of the inflexion (if any)

Reimplemented from BaseBracket.

◆ isglue()

bool BracketLeaf::isglue ( ) const
inlinevirtual

return tre if this is a glue tag

Reimplemented from BaseBracket.

◆ morpheme()

icu::UnicodeString BracketLeaf::morpheme ( ) const
inlinevirtual

return the value of the morpheme

Reimplemented from BaseBracket.

◆ original()

std::string BracketLeaf::original ( ) const
inlinevirtual

return the original value befor processing

Reimplemented from BaseBracket.

◆ pretty_put()

icu::UnicodeString BracketLeaf::pretty_put ( ) const
virtual

create a descriptive Unicode string representation for this object

Reimplemented from BaseBracket.

◆ put()

icu::UnicodeString BracketLeaf::put ( bool  full = true) const
virtual

create a Unicode string representation for this object

Reimplemented from BaseBracket.


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