Skip to content
Snippets Groups Projects
Commit 80b2a9cd authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

chore : commented the operator<< out

parent 2f1f25a1
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!100fix/scheduler_exec_time
...@@ -457,12 +457,13 @@ private: ...@@ -457,12 +457,13 @@ private:
*/ */
void addParent(const NodePtr otherNode, const IOIndex_t inId); void addParent(const NodePtr otherNode, const IOIndex_t inId);
/** // OPERATOR FUNCTIONNAL but commented out to avoid iostream inclusion
* @brief operator<< overload to ease print & debug of nodes // /**
* @param[inout] ostream to print to // * @brief operator<< overload to ease print & debug of nodes
* @param[in] n node to print // * @param[inout] ostream to print to
*/ // * @param[in] n node to print
friend std::ostream& operator << (std::ostream& os, Node& n); // */
// friend std::ostream& operator << (std::ostream& os, Node& n);
}; };
} // namespace Aidge } // namespace Aidge
......
...@@ -390,25 +390,25 @@ std::set<Aidge::NodePtr> Aidge::Node::getNodeDelta(int delta, std::set<Aidge::No ...@@ -390,25 +390,25 @@ std::set<Aidge::NodePtr> Aidge::Node::getNodeDelta(int delta, std::set<Aidge::No
return out; return out;
} }
namespace Aidge { // namespace Aidge {
std::ostream& operator << (std::ostream& os, Aidge::Node& n) { // std::ostream& operator << (std::ostream& os, Aidge::Node& n) {
using namespace std; // using namespace std;
os << "Node :\tName :\t\"" << n.name() << "\"\tType : \"" << n.getOperator()->type()<< "\"\tIN/OUTputs : "<< n.nbInputs() <<"/"<< n.nbOutputs() <<endl; // os << "Node :\tName :\t\"" << n.name() << "\"\tType : \"" << n.getOperator()->type()<< "\"\tIN/OUTputs : "<< n.nbInputs() <<"/"<< n.nbOutputs() <<endl;
os << "\tParents :\t" ; // os << "\tParents :\t" ;
for (const auto & p : n.getParents()) // for (const auto & p : n.getParents())
{ // {
os << "\"" <<p->name() << "\"\t"; // os << "\"" <<p->name() << "\"\t";
} // }
os << endl; // os << endl;
os << "\tChildren :\t" ; // os << "\tChildren :\t" ;
for (const auto & c : n.getChildren()) // for (const auto & c : n.getChildren())
{ // {
os << "\"" << c->name() << "\"\t"; // os << "\"" << c->name() << "\"\t";
} // }
os << endl; // os << endl;
return os; // return os;
} // }
} // }
///////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////
// private // private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment