vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
parstoch0lsystem.h
Go to the documentation of this file.
1 #ifndef PARSTOCH0LSYSTEM_H_
2 #define PARSTOCH0LSYSTEM_H_
3 
4 #include "abstract0lsystem.h"
5 
6 namespace AP_LSystem {
11 {
12 private:
13 
17  static const unsigned int capabilities = LS_0L | LS_DETERMINISTIC | LS_STOCHASTIC | LS_PARAMETRIC;
18 public:
22 
36  virtual multimap<char, Rule>::iterator * selectRule(multimap<char, Rule>::iterator & begin,
37  multimap<char, Rule>::iterator & end,
38  LongString * word,
39  unsigned int & pos,
40  double * parameters);
41 
48  static bool isCapable( unsigned int type )
49  {
50  if( ( type & capabilities ) == type )
51  return true;
52  else
53  return false;
54  }
55 
59  boost::shared_ptr<AbstractLSystem> clone() const
60  {
61  return boost::shared_ptr<AbstractLSystem>( new ParStoch0LSystem(*this) );
62  }
63 };
64 }
65 
66 #endif // PARSTOCH0LSYSTEM_H_