RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
Mathematica::Array< T > Class Template Referenceabstract

An Array primitive. More...

#include <Mathematica.hpp>

Inherits Mathematica::Expression.

Inherited by RawArray< T, Dim >, and RawArray< T, Dynamic >.

Public Types

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

virtual ~Array ()
 Destructor.
 
Type getType () const
 Get the type of expression. More...
 
virtual const int * size () const =0
 Get the shape as a list of integers. More...
 
virtual int dimensions () const =0
 Get the dimensions. More...
 
virtual const T * data () const =0
 Get the raw data. More...
 
- Public Member Functions inherited from Mathematica::Expression
virtual void out (std::ostream &stream) const =0
 Print to output stream. More...
 
virtual Expression::Ptr clone () const =0
 Make a copy of the expression. 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

template<typename T>
class rwlibs::mathematica::Mathematica::Array< T >

An Array primitive.

Member Function Documentation

◆ data()

virtual const T* data ( ) const
pure virtual

Get the raw data.

Returns
a pointer to the first element.

Implemented in RawArray< T, Dynamic >, and RawArray< T, Dim >.

◆ dimensions()

virtual int dimensions ( ) const
pure virtual

Get the dimensions.

Returns
the number of dimensions.

Implemented in RawArray< T, Dynamic >, and RawArray< T, Dim >.

◆ getType()

Type getType ( ) const
inlinevirtual

Get the type of expression.

Returns
the type.

Implements Mathematica::Expression.

◆ size()

virtual const int* size ( ) const
pure virtual

Get the shape as a list of integers.

Returns
list of same length as dimensions()

Implemented in RawArray< T, Dynamic >, and RawArray< T, Dim >.


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