Fawkes API  Fawkes Development Version
pddl_parser::ParamTransformer Class Reference

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...
 

Detailed Description

Functor to uniformly handle disjunctive types and shorthand notations.

Definition at line 85 of file pddl_semantics.h.

Member Function Documentation

◆ operator()()

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.

Parameters
wherePosition of the parsed param type in the string to parse.
parsedParameters that got parsed.
targetThe vector that is extended by all the constructed pairs.
Returns
The last created param tuple, this is not added to target in this function but rather is added through the semantic action when parsing.

Definition at line 69 of file pddl_semantics.cpp.


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