GenericContainer
GenericContaine a tool for C++ programming
Loading...
Searching...
No Matches
GenericContainerInterface_matlab.hh
Go to the documentation of this file.
1/****************************************************************************\
2 Copyright (c) Enrico Bertolazzi 2014
3 See file license.txt
4\****************************************************************************/
5
6#ifndef GENERIC_CONTAINER_HH
7 #include "GenericContainer.hh"
8#endif
9#include "mex.h"
10
11namespace GC_namespace {
12
16 void mxArray_to_GenericContainer( mxArray const * mx, GenericContainer & gc );
17
27 void mxSparse_to_GenericContainer( mxArray const * mx, GenericContainer & gc );
28
32 void GenericContainer_to_mxArray( GenericContainer const & gc, mxArray * & mx );
33
37 void mexPrint( GenericContainer const & gc );
38
39 // ===========================================================================
40
44 void to_mxArray( bool const & val, mxArray * & mx );
45
49 void to_mxArray( int_type const & val, mxArray * & mx );
50
54 void to_mxArray( long_type const & val, mxArray * & mx );
55
59 void to_mxArray( real_type const & val, mxArray * & mx );
60
64 void to_mxArray( complex_type const & val, mxArray * & mx );
65
69 void to_mxArray( string_type const & val, mxArray * & mx );
70
74 void to_mxArray( vec_bool_type const & val, mxArray * & mx );
75
79 void to_mxArray( vec_int_type const & val, mxArray * & mx );
80
84 void to_mxArray( vec_long_type const & val, mxArray * & mx );
85
89 void to_mxArray( vec_real_type const & val, mxArray * & mx );
90
94 void to_mxArray( vec_complex_type const & val, mxArray * & mx );
95
100 void to_mxArray( vec_string_type const & val, mxArray * & mx );
101
105 void to_mxArray( mat_int_type const & val, mxArray * & mx );
106
110 void to_mxArray( mat_long_type const & val, mxArray * & mx );
111
115 void to_mxArray( mat_real_type const & val, mxArray * & mx );
116
120 void to_mxArray( mat_complex_type const & val, mxArray * & mx );
121
122}
The GenericContainer class provides a flexible container for storing heterogeneous data types.
Definition GenericContainer.hh:572
Generic matrix storage type.
Definition GenericContainer.hh:163
Definition GenericContainer.cc:70
void mxSparse_to_GenericContainer(mxArray const *mx, GenericContainer &gc)
void mexPrint(GenericContainer const &gc)
void mxArray_to_GenericContainer(mxArray const *mx, GenericContainer &gc)
void GenericContainer_to_mxArray(GenericContainer const &gc, mxArray *&mx)
void to_mxArray(bool const &val, mxArray *&mx)