![]() |
RobWorkProject
25.2.11-
|
A Mathematica WSTP ReturnExpressionPacket. More...
#include <ReturnExpressionPacket.hpp>
Inherits Mathematica::Packet.
Public Types | |
typedef rw::core::Ptr< ReturnExpressionPacket > | Ptr |
Smart pointer type. | |
![]() | |
typedef rw::core::Ptr< Packet > | Ptr |
Smart pointer type. | |
![]() | |
typedef rw::core::Ptr< FunctionBase > | Ptr |
Smart pointer type. | |
![]() | |
enum | Type { String , Integer , Real , Symbol , Function , Array } |
Type of expression. More... | |
typedef rw::core::Ptr< Expression > | Ptr |
Smart pointer type. | |
typedef enum rwlibs::mathematica::Mathematica::Expression::Type | Type |
Type of expression. | |
Public Member Functions | |
ReturnExpressionPacket (const Mathematica::Expression &expression) | |
Construct a new packet. More... | |
ReturnExpressionPacket (rw::core::Ptr< const Mathematica::Expression > expression) | |
Construct a new packet. More... | |
virtual | ~ReturnExpressionPacket () |
Destructor. | |
const rw::core::Ptr< const Mathematica::Expression > | expression () |
Get the expression stored in the packet. More... | |
std::list< rw::core::Ptr< const Mathematica::Expression > > | getArguments () const |
Get a list of arguments for this function. More... | |
Mathematica::Expression::Ptr | clone () const |
Make a copy of the expression. More... | |
![]() | |
Packet (const std::string &name, PacketType type) | |
Construct new expression. More... | |
virtual | ~Packet () |
Destructor. | |
PacketType | packetType () const |
Get the type of packet. More... | |
![]() | |
FunctionBase (const std::string &name) | |
Construct new function. More... | |
std::string | getName () const |
Get the name of the function. More... | |
Type | getType () const |
Get the type of expression. More... | |
virtual void | out (std::ostream &stream) const |
Print to output stream. More... | |
virtual void | out (std::ostream &stream, std::size_t indent) const |
Print function by using indentations. More... | |
Additional Inherited Members | |
![]() | |
template<typename Type > | |
static void | toList (std::list< rw::core::Ptr< Type >> &) |
Helper function for extracting a list of arguments when given as a variable number of arguments. More... | |
template<typename Type , typename Exp , typename... T> | |
static void | toList (std::list< rw::core::Ptr< Type >> &list, const Exp &r, T... t) |
Helper function for extracting a list of arguments when given as a variable number of arguments. More... | |
![]() | |
std::string | _name |
Name of the function. | |
A Mathematica WSTP ReturnExpressionPacket.
ReturnExpressionPacket | ( | const Mathematica::Expression & | expression | ) |
Construct a new packet.
expression | [in] the expression. |
ReturnExpressionPacket | ( | rw::core::Ptr< const Mathematica::Expression > | expression | ) |
Construct a new packet.
expression | [in] the expression. |
|
virtual |
const rw::core::Ptr<const Mathematica::Expression> expression | ( | ) |
Get the expression stored in the packet.
|
virtual |
Get a list of arguments for this function.
Implements Mathematica::FunctionBase.