Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
rosmatlab::Conversion Class Reference

#include <conversion.h>

List of all members.

Public Member Functions

 Conversion (const MessagePtr &message)
 Conversion (const MessagePtr &message, const ConversionOptions &options)
 Conversion (const Conversion &other, const MessagePtr &message=MessagePtr())
virtual const double * convertFromDouble (const FieldPtr &field, const double *begin, const double *end)
virtual void convertFromMatlab (const FieldPtr &field, ConstArray source)
virtual Array convertToMatlab (const FieldPtr &field)
const MessagePtr & expanded ()
virtual MessagePtr fromMatlab (ConstArray source, std::size_t index=0)
virtual void fromMatlab (const MessagePtr &message, ConstArray source, std::size_t index=0)
virtual std::size_t numberOfInstances (ConstArray source)
 operator void * () const
Optionsoptions ()
const Optionsoptions () const
ConversionsetOptions (int nrhs, const mxArray *prhs[])
virtual Array toDoubleMatrix ()
virtual Array toDoubleMatrix (Array target, std::size_t index=0, std::size_t size=0)
virtual Array toExtendedStruct ()
virtual Array toExtendedStruct (Array target, std::size_t index=0, std::size_t size=0)
virtual Array toMatlab ()
virtual Array toMatlab (Array target, std::size_t index=0, std::size_t size=0)
virtual Array toStruct ()
virtual Array toStruct (Array target, std::size_t index=0, std::size_t size=0)
virtual ~Conversion ()

Static Public Member Functions

static ConversionOptionsdefaultOptions ()
static ConversionOptionsperMessageOptions (const MessagePtr &message)

Protected Member Functions

virtual void fromDoubleMatrix (const MessagePtr &target, ConstArray source, std::size_t n=0)
virtual void fromDoubleMatrix (const MessagePtr &target, const double *begin, const double *end)
virtual void fromStruct (const MessagePtr &target, ConstArray source, std::size_t index=0)

Protected Attributes

MessagePtr expanded_
MessagePtr message_
ConversionOptions options_

Static Protected Attributes

static std::map< const char
*, ConversionOptions
per_message_options_

Detailed Description

Definition at line 70 of file conversion.h.


Constructor & Destructor Documentation

rosmatlab::Conversion::Conversion ( const MessagePtr &  message)

Definition at line 47 of file conversion.cpp.

rosmatlab::Conversion::Conversion ( const MessagePtr &  message,
const ConversionOptions options 
)

Definition at line 52 of file conversion.cpp.

rosmatlab::Conversion::Conversion ( const Conversion other,
const MessagePtr &  message = MessagePtr() 
)

Definition at line 58 of file conversion.cpp.

Definition at line 65 of file conversion.cpp.


Member Function Documentation

const double * rosmatlab::Conversion::convertFromDouble ( const FieldPtr &  field,
const double *  begin,
const double *  end 
) [virtual]

Definition at line 429 of file conversion.cpp.

void rosmatlab::Conversion::convertFromMatlab ( const FieldPtr &  field,
ConstArray  source 
) [virtual]

Definition at line 371 of file conversion.cpp.

Array rosmatlab::Conversion::convertToMatlab ( const FieldPtr &  field) [virtual]

Definition at line 337 of file conversion.cpp.

Definition at line 473 of file conversion.cpp.

const MessagePtr & rosmatlab::Conversion::expanded ( )

Definition at line 465 of file conversion.cpp.

void rosmatlab::Conversion::fromDoubleMatrix ( const MessagePtr &  target,
ConstArray  source,
std::size_t  n = 0 
) [protected, virtual]

Definition at line 298 of file conversion.cpp.

void rosmatlab::Conversion::fromDoubleMatrix ( const MessagePtr &  target,
const double *  begin,
const double *  end 
) [protected, virtual]

Definition at line 317 of file conversion.cpp.

MessagePtr rosmatlab::Conversion::fromMatlab ( ConstArray  source,
std::size_t  index = 0 
) [virtual]

Definition at line 268 of file conversion.cpp.

void rosmatlab::Conversion::fromMatlab ( const MessagePtr &  message,
ConstArray  source,
std::size_t  index = 0 
) [virtual]

Definition at line 275 of file conversion.cpp.

void rosmatlab::Conversion::fromStruct ( const MessagePtr &  target,
ConstArray  source,
std::size_t  index = 0 
) [protected, virtual]

Definition at line 325 of file conversion.cpp.

std::size_t rosmatlab::Conversion::numberOfInstances ( ConstArray  source) [virtual]

Definition at line 251 of file conversion.cpp.

rosmatlab::Conversion::operator void * ( ) const [inline]

Definition at line 77 of file conversion.h.

Definition at line 101 of file conversion.h.

const Options& rosmatlab::Conversion::options ( ) const [inline]

Definition at line 102 of file conversion.h.

ConversionOptions & rosmatlab::Conversion::perMessageOptions ( const MessagePtr &  message) [static]

Definition at line 482 of file conversion.cpp.

Conversion& rosmatlab::Conversion::setOptions ( int  nrhs,
const mxArray *  prhs[] 
)

Definition at line 84 of file conversion.cpp.

Array rosmatlab::Conversion::toDoubleMatrix ( Array  target,
std::size_t  index = 0,
std::size_t  size = 0 
) [virtual]

Definition at line 88 of file conversion.cpp.

Definition at line 171 of file conversion.cpp.

Array rosmatlab::Conversion::toExtendedStruct ( Array  target,
std::size_t  index = 0,
std::size_t  size = 0 
) [virtual]

Definition at line 175 of file conversion.cpp.

Definition at line 67 of file conversion.cpp.

Array rosmatlab::Conversion::toMatlab ( Array  target,
std::size_t  index = 0,
std::size_t  size = 0 
) [virtual]

Definition at line 71 of file conversion.cpp.

Definition at line 107 of file conversion.cpp.

Array rosmatlab::Conversion::toStruct ( Array  target,
std::size_t  index = 0,
std::size_t  size = 0 
) [virtual]

Definition at line 111 of file conversion.cpp.


Member Data Documentation

MessagePtr rosmatlab::Conversion::expanded_ [protected]

Definition at line 114 of file conversion.h.

MessagePtr rosmatlab::Conversion::message_ [protected]

Definition at line 113 of file conversion.h.

Definition at line 116 of file conversion.h.

std::map< const char *, ConversionOptions > rosmatlab::Conversion::per_message_options_ [static, protected]

Definition at line 117 of file conversion.h.


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


rosmatlab
Author(s): Johannes Meyer
autogenerated on Fri Jul 25 2014 06:08:36