RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
Mathematica::Real Class Reference

A real primitive. More...

#include <Mathematica.hpp>

Inherits Mathematica::Expression.

Public Types

typedef rw::core::Ptr< RealPtr
 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

 Real (double value)
 Construct new floating point value. More...
 
virtual ~Real ()
 Destructor.
 
Type getType () const
 Get the type of expression. More...
 
void out (std::ostream &stream) const
 Print to output stream. More...
 
virtual Expression::Ptr clone () const
 Make a copy of the expression. More...
 
double value () const
 Get the value. 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...
 

Detailed Description

A real primitive.

Constructor & Destructor Documentation

◆ Real()

Real ( double  value)
inline

Construct new floating point value.

Parameters
value[in] the value.

Member Function Documentation

◆ clone()

virtual Expression::Ptr clone ( ) const
inlinevirtual

Make a copy of the expression.

Returns
a new copy.

Implements Mathematica::Expression.

◆ getType()

Type getType ( ) const
inlinevirtual

Get the type of expression.

Returns
the type.

Implements Mathematica::Expression.

◆ out()

void out ( std::ostream &  stream) const
inlinevirtual

Print to output stream.

Parameters
stream[in/out] the stream to print to.

Implements Mathematica::Expression.

◆ value()

double value ( ) const
inline

Get the value.

Returns
the value.

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