Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

LGrammar Class Reference

L-System grammar. More...

#include <mlsystem.h>

Inheritance diagram for LGrammar:

List of all members.

Public Methods

void addRule (const String &left, const String &right)
void applyTo (String &src, int times=1) const

Detailed Description

L-System grammar.

Definition at line 74 of file mlsystem.h.

Member Function Documentation

void addRule const String   left,
const String   right

Adds a production rule.

left  Left-hand side of the production rule.
right  Right-hand side of the production rule.

Definition at line 40 of file

References Array< LRule >::add().

void applyTo String   src,
int    times = 1

Applies the grammar to the given string.

times  Number of times the grammar is applied.

Definition at line 44 of file

References String::length(), String::mid(), String::right(), and Array< LRule >::size().

The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18