62 const std::string& _prefix
69 _name,
DMatrixPtr(
new DMatrix( m )), _type, _dataStruct, _callItByValue, _addressIdx, _prefix));
79 const std::string& _prefix
83 _name, _data, _type, _dataStruct, _callItByValue, _addressIdx, _prefix));
113 return (*this)->getAddressString( withDataStruct );
119 return (*this)->getNumRows();
125 return (*this)->getNumCols();
131 return (*this)->getDim();
138 return (*this)->isGiven();
145 return (*this)->isCalledByValue();
151 return (*this)->callByValue();
157 const std::string& _realString,
158 const std::string& _intString,
162 return (*this)->exportDataDeclaration(stream, _realString, _intString, _precision);
void assignNode(SharedObjectNode *node)
Assign the node to a node class pointer (or null)
ExportArgument getAddress(const ExportIndex &rowIdx, const ExportIndex &colIdx=emptyConstExportIndex) const
virtual uint getDim() const
Allows to pass back messages to the calling function.
std::shared_ptr< GenericMatrix< double > > DMatrixPtr
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
void setAll(const T &_value)
virtual uint getNumCols() const
#define CLOSE_NAMESPACE_ACADO
GenericMatrix< double > DMatrix
Defines a scalar-valued index variable to be used for exporting code.
Defines a matrix-valued variable that can be passed as argument to exported functions.
bool isCalledByValue() const
static BEGIN_NAMESPACE_ACADO const double undefinedEntry
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
ExportArgumentInternal * operator->()
Defines a matrix-valued variable that can be passed as argument to exported functions.
virtual bool isGiven() const
returnValue callByValue()
ExportDataInternal * operator->()
#define BEGIN_NAMESPACE_ACADO
ExportArgument getAddress(const ExportIndex &_rowIdx, const ExportIndex &_colIdx=emptyConstExportIndex) const
virtual uint getNumRows() const
const std::string getAddressString(bool withDataStruct=true) const