soundChange Class Reference

This class is a sound change applier. More...

#include <soundChange.h>

List of all members.

Public Member Functions

 soundChange (const std::map< std::string, std::string > &, const std::vector< std::string > &)
 Constructor with vars and rules.
 ~soundChange ()
 Destructor.
std::string change (const std::string &) const
 Returns the sound changed for the word.

Private Member Functions

std::string apply_rule (const std::string &, const ph_rule &) const
 find in a text a string and replace it with another string under certain conditions
bool check_cond (const std::string &, const std::string &, int, const std::string &) const
 check that the conditions for the sound change are true

Private Attributes

std::vector< ph_rulerules
 rules

Detailed Description

This class is a sound change applier.

With it, you can construct objects which will generate consistent sound changes.


Constructor & Destructor Documentation

soundChange::soundChange ( const std::map< std::string, std::string > &  ,
const std::vector< std::string > &   
)

Constructor with vars and rules.

soundChange::~soundChange (  ) 

Destructor.


Member Function Documentation

std::string soundChange::apply_rule ( const std::string &  ,
const ph_rule  
) const [private]

find in a text a string and replace it with another string under certain conditions

std::string soundChange::change ( const std::string &   )  const

Returns the sound changed for the word.

bool soundChange::check_cond ( const std::string &  ,
const std::string &  ,
int  ,
const std::string &   
) const [private]

check that the conditions for the sound change are true


Member Data Documentation

std::vector<ph_rule> soundChange::rules [private]

rules


The documentation for this class was generated from the following file:
Generated on Tue Jul 27 16:29:34 2010 for FreeLing by  doxygen 1.6.3