Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 9cd9377f authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add getter with const tensor pointer

parent 75b251f5
......@@ -368,8 +368,15 @@ std::string ph5_backendTableSourceWrite(const PTable & table){
*/
std::string ph5_backendTableSourceRowSetterGetter(const PTable & table){
std::string body(""), name(table.getName());
body += "void "+name+"::setRow(size_t i";
const PVecAttribute & vecAttriute = table.getVecAttribute();
body += "///Set a full row of the table " + name + "\n";
body += "/**\t@param i : index of the row to be set\n";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
body += " * \t@param "+it->getName()+" : attribute to be set\n";
}
body += "*/\n";
body += "void "+name+"::setRow(size_t i";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
body += ", " + type + " ";
......@@ -383,6 +390,13 @@ std::string ph5_backendTableSourceRowSetterGetter(const PTable & table){
body += "\tset" + firstToUpper(it->getName()) + "(i, "+it->getName()+");\n";
}
body += "}\n\n";
body += "///Get a full row of the table " + name + " (without tensor copy, only with pointer)\n";
body += "/**\t@param i : index of the row to get its values\n";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
body += " * \t@param[out] "+it->getName()+" : attribute to be get\n";
}
body += "*/\n";
body += "void "+name+"::getRow(size_t i";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
......@@ -400,6 +414,12 @@ std::string ph5_backendTableSourceRowSetterGetter(const PTable & table){
}
body += "}\n\n";
body += "///Get a full row of the table " + name + " (without tensor copy, only with pointer)\n";
body += "/**\t@param i : index of the row to get its values\n";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
body += " * \t@param[out] "+it->getName()+" : attribute to be get\n";
}
body += "*/\n";
body += "void "+name+"::getRow(size_t i";
for(PVecAttribute::const_iterator it(vecAttriute.begin()); it != vecAttriute.end(); ++it){
std::string type(it->getType());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment