knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::py::PairToTupleConverter Struct Reference

#include <pair.h>

Static Public Member Functions

static PyObject * convert (const std::pair< std::basic_string_view< char, std::char_traits< char > > const, std::pair< std::shared_ptr< knowrob::Variable >, std::shared_ptr< knowrob::Term > > > &pair)
 
static PyObject * convert (const std::pair< std::basic_string_view< char, std::char_traits< char > > const, std::pair< std::shared_ptr< knowrob::Variable >, std::shared_ptr< knowrob::Term > > > &pair)
 

Detailed Description

Definition at line 15 of file pair.h.

Member Function Documentation

◆ convert() [1/2]

static PyObject* knowrob::py::PairToTupleConverter::convert ( const std::pair< std::basic_string_view< char, std::char_traits< char > > const, std::pair< std::shared_ptr< knowrob::Variable >, std::shared_ptr< knowrob::Term > > > &  pair)
inlinestatic

Definition at line 17 of file pair.h.

17  {
18  return boost::python::incref(
19  boost::python::make_tuple(pair.first, pair.second.first, pair.second.second).ptr());
20  }

◆ convert() [2/2]

static PyObject* knowrob::py::PairToTupleConverter::convert ( const std::pair< std::basic_string_view< char, std::char_traits< char > > const, std::pair< std::shared_ptr< knowrob::Variable >, std::shared_ptr< knowrob::Term > > > &  pair)
inlinestatic

Definition at line 17 of file pair.h.

17  {
18  return boost::python::incref(
19  boost::python::make_tuple(pair.first, pair.second.first, pair.second.second).ptr());
20  }

The documentation for this struct was generated from the following file: