pxd returntype
parent
86405dbb48
commit
f72448b624
|
@ -66,4 +66,16 @@ void ReturnType::wrapTypeUnwrap(FileWriter& wrapperFile) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
void ReturnType::emit_cython_pxd(FileWriter& file) const {
|
||||||
|
string typeName = qualifiedName("_");
|
||||||
|
string cythonType = typeName;
|
||||||
|
if (typeName=="Vector" || typeName == "Matrix") {
|
||||||
|
cythonType = typeName + "Xd";
|
||||||
|
} else {
|
||||||
|
if (isPtr) cythonType = "shared_ptr[" + typeName + "]";
|
||||||
|
}
|
||||||
|
file.oss << cythonType << " ";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ************************************************************************* */
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,8 @@ struct ReturnType: public Qualified {
|
||||||
throw DependencyMissing(key, "checking return type of " + s);
|
throw DependencyMissing(key, "checking return type of " + s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void emit_cython_pxd(FileWriter& file) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
friend struct ReturnValue;
|
friend struct ReturnValue;
|
||||||
|
|
Loading…
Reference in New Issue