RuleVariables Class Reference

Container for the variable blocks of a rule. More...

#include <RuleVariables.h>

List of all members.

Public Types

typedef RuleVariablesConstIterator const_iterator

Public Member Functions

void set_variable (const std::string &var)
void add_value (const std::string &value)
 Add a new value for the current variable.
void add_values (const std::vector< std::string > &values)
 Add the values in values for the current variable.
void set_matcher (Matcher matcher)
 Set the matcher for the current block and start a new block.
const_iterator begin (void) const
 Const iterator to the beginning.
const_iterator end (void) const
 Const iterator to the end.
void clear (void)
 Disacrd all defined blocks.

Protected Attributes

FreelyVariableBlockContainer freely_blocks
MatchedVariableBlockContainer matched_blocks
MixedVariableBlockContainer mixed_blocks
VariableValuesVector current_variable_block

Friends

class RuleVariablesConstIterator

Detailed Description

Container for the variable blocks of a rule.

Definition at line 27 of file RuleVariables.h.


Member Function Documentation

void RuleVariables::add_value ( const std::string &  value  ) 

Add a new value for the current variable.

Precondition:
set_variable() has been called. Otherwise an EmptyContainer is thrown.

Definition at line 27 of file RuleVariables.cc.

void RuleVariables::add_values ( const std::vector< std::string > &  values  ) 

Add the values in values for the current variable.

Precondition:
set_variable() has been called. Otherwise an EmptyContainer is thrown.

Definition at line 34 of file RuleVariables.cc.


The documentation for this class was generated from the following files:
 All Classes Files Functions Typedefs Enumerations Defines
Generated on Wed Dec 15 01:11:59 2010 for hfst-twolc (documentation under construction) by  doxygen 1.6.3