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

An integer primitive. More...

#include <Mathematica.hpp>

Inherits Mathematica::Expression.

Public Types

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

 Integer (int value)
 Construct new integer. More...
 
virtual ~Integer ()
 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...
 
int 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

An integer primitive.

Constructor & Destructor Documentation

◆ Integer()

Integer ( int  value)
inline

Construct new integer.

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()

int value ( ) const
inline

Get the value.

Returns
the value.

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