Public Member Functions | Protected Attributes | Friends

Tree::PrimitiveSet Class Reference

Primitive set class: collects all Tree Primitives. More...

#include <PrimitiveSet.h>

List of all members.

Public Member Functions

bool initialize (StateP state)
void addFunction (PrimitiveP functionPrimitive)
 Add a function primitive to primitive set. If a function takes 0 arguments, it is added to the terminal set.
bool addFunction (std::string name)
 Add a function primitive to primitive set - find by name. If a function takes 0 arguments, it is added to the terminal set.
void addTerminal (PrimitiveP terminalPrimitive)
 Add a terminal primitive to primitive set.
PrimitiveP getRandomTerminal ()
PrimitiveP getRandomFunction ()
PrimitiveP getRandomPrimitive ()
PrimitiveP getTerminalByName (std::string name)
PrimitiveP getFunctionByName (std::string name)
PrimitiveP getPrimitiveByName (std::string name)
uint getFunctionSetSize ()
uint getTerminalSetSize ()
uint getPrimitivesSize ()

Protected Attributes

StateP state_
std::map< std::string, PrimitiveP > mPrimitives_
 map of all registered primitive functions
std::map< std::string,
Primitives::terminal_type > 
mTypeNames_
std::vector< PrimitiveP > terminalSet_
 actual used terminals
std::vector< PrimitiveP > functionSet_
 actual used functions
std::vector< PrimitiveP > primitives_
 used functions and terminals

Friends

class Tree

Detailed Description

Primitive set class: collects all Tree Primitives.

Definition at line 13 of file PrimitiveSet.h.


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