RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
EvaluatePacket Class Reference

A Mathematica WSTP EvaluatePacket. More...

#include <EvaluatePacket.hpp>

Inherits Mathematica::Packet.

Public Types

typedef rw::core::Ptr< EvaluatePacketPtr
 Smart pointer type.
 
- Public Types inherited from Mathematica::Packet
typedef rw::core::Ptr< PacketPtr
 Smart pointer type.
 
- Public Types inherited from Mathematica::FunctionBase
typedef rw::core::Ptr< FunctionBasePtr
 Smart pointer type.
 
- Public Types inherited from Mathematica::Expression
enum  Type {
  String , Integer , Real , Symbol ,
  Function , Array
}
 Type of expression. More...
 
typedef rw::core::Ptr< ExpressionPtr
 Smart pointer type.
 
typedef enum rwlibs::mathematica::Mathematica::Expression::Type Type
 Type of expression.
 

Public Member Functions

 EvaluatePacket (const Mathematica::Expression &expression)
 Construct a new packet. More...
 
 EvaluatePacket (rw::core::Ptr< const Mathematica::Expression > expression)
 Construct a new packet. More...
 
virtual ~EvaluatePacket ()
 Destructor.
 
const rw::core::Ptr< const Mathematica::Expressionexpression ()
 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...
 
- Public Member Functions inherited from Mathematica::Packet
 Packet (const std::string &name, PacketType type)
 Construct new expression. More...
 
virtual ~Packet ()
 Destructor.
 
PacketType packetType () const
 Get the type of packet. More...
 
- Public Member Functions inherited from Mathematica::FunctionBase
 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

- Static Protected Member Functions inherited from Mathematica::Expression
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...
 
- Protected Attributes inherited from Mathematica::FunctionBase
std::string _name
 Name of the function.
 

Detailed Description

A Mathematica WSTP EvaluatePacket.

Constructor & Destructor Documentation

◆ EvaluatePacket() [1/2]

EvaluatePacket ( const Mathematica::Expression expression)

Construct a new packet.

Parameters
expression[in] the expression.

◆ EvaluatePacket() [2/2]

Construct a new packet.

Parameters
expression[in] the expression.

Member Function Documentation

◆ clone()

Mathematica::Expression::Ptr clone ( ) const
virtual

Make a copy of the expression.

Returns
a new copy.

Implements Mathematica::Expression.

◆ expression()

const rw::core::Ptr<const Mathematica::Expression> expression ( )

Get the expression stored in the packet.

Returns
the expression.

◆ getArguments()

std::list<rw::core::Ptr<const Mathematica::Expression> > getArguments ( ) const
virtual

Get a list of arguments for this function.

Returns
list of arguments.

Implements Mathematica::FunctionBase.


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