Fawkes API Fawkes Development Version
|
Functor to uniformly handle disjunctive types and shorthand notations. More...
#include <pddl_semantics.h>
Public Member Functions | |
pair_type | operator() (const iterator_type &where, const pair_strings_type &parsed, string_pairs_type &target) const |
Transform a pair of string vectors to pairs of strings. More... | |
Functor to uniformly handle disjunctive types and shorthand notations.
Definition at line 85 of file pddl_semantics.h.
pair_type pddl_parser::ParamTransformer::operator() | ( | const iterator_type & | where, |
const pair_strings_type & | parsed, | ||
string_pairs_type & | target | ||
) | const |
Transform a pair of string vectors to pairs of strings.
Parameters may be given in a form '?a ?b - (either x y)', which is parsed as <[a, b],[x,y]>. The Transformation creates <a,x> <b,x>, <a,y> and <b,y> out of this.
where | Position of the parsed param type in the string to parse. |
parsed | Parameters that got parsed. |
target | The vector that is extended by all the constructed pairs. |
Definition at line 69 of file pddl_semantics.cpp.