Drake
standardMexConversions.h File Reference
#include <string>
#include "drake/util/mexify.h"
Include dependency graph for standardMexConversions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TupleToMexHelper< Index >
 
struct  TupleToMexHelper< 0 >
 

Namespaces

 Drake
 NOTE: The contents of this class are for the most part direct ports of drake/systems/plants//inverseKinBackend.m from Matlab to C++; many methods and variables follow Matlab conventions and are documented in that file.
 
 Drake::internal
 

Functions

bool isConvertibleFromMex (const mxArray *source, int *, std::ostream *log) NOEXCEPT
 fromMex specializations More...
 
int fromMexUnsafe (const mxArray *source, int *)
 
bool isConvertibleFromMex (const mxArray *source, bool *, std::ostream *log) NOEXCEPT
 
bool fromMexUnsafe (const mxArray *source, bool *)
 
template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
bool isConvertibleFromMex (const mxArray *mex, Eigen::MatrixBase< Eigen::Map< const Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols >>> *, std::ostream *log) NOEXCEPT
 
template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
Eigen::Map< const Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols > > fromMexUnsafe (const mxArray *mex, Eigen::MatrixBase< Eigen::Map< const Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols >>> *)
 
bool isConvertibleFromMex (const mxArray *source, Eigen::MatrixBase< Eigen::Map< const Eigen::VectorXi >> *, std::ostream *log) NOEXCEPT
 
Eigen::Map< const Eigen::VectorXi > fromMexUnsafe (const mxArray *source, Eigen::MatrixBase< Eigen::Map< const Eigen::VectorXi >> *)
 
template<typename T >
bool isConvertibleFromMex (const mxArray *source, std::vector< T > *, std::ostream *log) NOEXCEPT
 
template<typename T >
std::vector< T > fromMexUnsafe (const mxArray *source, std::vector< T > *)
 
template<typename DerType , int Rows, int Cols, int Options, int MaxRows, int MaxCols>
bool isConvertibleFromMex (const mxArray *mex, Eigen::MatrixBase< Eigen::Matrix< Eigen::AutoDiffScalar< DerType >, Rows, Cols, Options, MaxRows, MaxCols >> *, std::ostream *log) NOEXCEPT
 
template<typename DerType , int Rows, int Cols, int Options, int MaxRows, int MaxCols>
Eigen::Matrix< Eigen::AutoDiffScalar< DerType >, Rows, Cols, Options, MaxRows, MaxCols > fromMexUnsafe (const mxArray *mex, Eigen::MatrixBase< Eigen::Matrix< Eigen::AutoDiffScalar< DerType >, Rows, Cols, Options, MaxRows, MaxCols >> *)
 
int toMex (const bool &source, mxArray *dest[], int nlhs)
 toMex specializations More...
 
template<typename Scalar , int Rows, int Cols, int Options, int MaxRows, int MaxCols>
int toMex (const Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols > &source, mxArray *dest[], int nlhs)
 
template<typename A , typename B >
int toMex (const std::pair< A, B > &source, mxArray *dest[], int nlhs)
 
template<typename T >
int toMex (const std::vector< T > &source, mxArray *dest[], int nlhs)
 
template<typename... Ts>
int toMex (const std::tuple< Ts... > &source, mxArray *dest[], int nlhs)
 

Function Documentation

int fromMexUnsafe ( const mxArray *  source,
int *   
)

Here is the caller graph for this function:

bool fromMexUnsafe ( const mxArray *  source,
bool *   
)
Eigen::Map<const Eigen::Matrix<double, Rows, Cols, Options, MaxRows, MaxCols> > fromMexUnsafe ( const mxArray *  mex,
Eigen::MatrixBase< Eigen::Map< const Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols >>> *   
)
Eigen::Map<const Eigen::VectorXi> fromMexUnsafe ( const mxArray *  source,
Eigen::MatrixBase< Eigen::Map< const Eigen::VectorXi >> *   
)
std::vector<T> fromMexUnsafe ( const mxArray *  source,
std::vector< T > *   
)

Here is the call graph for this function:

Eigen::Matrix<Eigen::AutoDiffScalar<DerType>, Rows, Cols, Options, MaxRows, MaxCols> fromMexUnsafe ( const mxArray *  mex,
Eigen::MatrixBase< Eigen::Matrix< Eigen::AutoDiffScalar< DerType >, Rows, Cols, Options, MaxRows, MaxCols >> *   
)

Here is the call graph for this function:

bool isConvertibleFromMex ( const mxArray *  source,
int *  ,
std::ostream *  log 
)

fromMex specializations

Here is the call graph for this function:

bool isConvertibleFromMex ( const mxArray *  source,
bool *  ,
std::ostream *  log 
)

Here is the call graph for this function:

bool isConvertibleFromMex ( const mxArray *  mex,
Eigen::MatrixBase< Eigen::Map< const Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols >>> *  ,
std::ostream *  log 
)

Here is the call graph for this function:

bool isConvertibleFromMex ( const mxArray *  source,
Eigen::MatrixBase< Eigen::Map< const Eigen::VectorXi >> *  ,
std::ostream *  log 
)

Here is the call graph for this function:

bool isConvertibleFromMex ( const mxArray *  source,
std::vector< T > *  ,
std::ostream *  log 
)

Here is the call graph for this function:

bool isConvertibleFromMex ( const mxArray *  mex,
Eigen::MatrixBase< Eigen::Matrix< Eigen::AutoDiffScalar< DerType >, Rows, Cols, Options, MaxRows, MaxCols >> *  ,
std::ostream *  log 
)

Here is the call graph for this function:

int toMex ( const bool &  source,
mxArray *  dest[],
int  nlhs 
)

toMex specializations

Here is the caller graph for this function:

int toMex ( const Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols > &  source,
mxArray *  dest[],
int  nlhs 
)
int toMex ( const std::pair< A, B > &  source,
mxArray *  dest[],
int  nlhs 
)

Here is the call graph for this function:

int toMex ( const std::vector< T > &  source,
mxArray *  dest[],
int  nlhs 
)

Here is the call graph for this function:

int toMex ( const std::tuple< Ts... > &  source,
mxArray *  dest[],
int  nlhs 
)