.. _program_listing_file__tmp_ws_src_ros2_planning_system_plansys2_pddl_parser_include_plansys2_pddl_parser_GroundFunc.h: Program Listing for File GroundFunc.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/ros2_planning_system/plansys2_pddl_parser/include/plansys2_pddl_parser/GroundFunc.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "plansys2_msgs/msg/node.hpp" #include "plansys2_msgs/msg/tree.hpp" #include "plansys2_pddl_parser/TypeGround.h" namespace parser { namespace pddl { template < typename T > class GroundFunc : public TypeGround { public: T value; GroundFunc() : TypeGround(), value( 0 ) {} GroundFunc( Lifted * l, const T & val = T( 0 ) ) : TypeGround( l ), value( val ) {} void PDDLPrint( std::ostream & s, unsigned indent, const TokenStruct< std::string > & ts, const Domain & d ) const override; plansys2_msgs::msg::Node::SharedPtr getTree( plansys2_msgs::msg::Tree & tree, const Domain & d, const std::vector & replace = {} ) const override; void print( std::ostream & stream ) const { stream << name << params << value << "\n"; } void parse( Stringreader & f, TokenStruct< std::string > & ts, Domain & d ); }; } } // namespaces