X-Git-Url: https://git.llucax.com/z.facultad/75.68/celdas.git/blobdiff_plain/fd72896c8b832ca19985ed67f6b1e4d570c85da2..22822a747c21df2f9d99acd8dd2f3f3a9ea54a9a:/trunk/src/sistemaautonomo.h?ds=sidebyside diff --git a/trunk/src/sistemaautonomo.h b/trunk/src/sistemaautonomo.h index 91efc99..2a85b5c 100644 --- a/trunk/src/sistemaautonomo.h +++ b/trunk/src/sistemaautonomo.h @@ -136,10 +136,24 @@ public: inline std::ostream& operator<< (std::ostream& os, const CTeoria& t) { +#ifdef LOG + return os << t.nombre << "," << t.funcion << "," << t.p << "," << t.k; +#else // ! LOG return os << "CTeoria(nombre=" << t.nombre << ", funcion=" << t.funcion - << ", p=" << t.p << ", k=" << t.k << /*", ciclos=" << t.ciclos <<*/ ")"; -// << "):\n\tdatos_iniciales:\n" << t.datos_iniciales -// << "\tdatos_finales:\n" << t.datos_finales << "\n"; + << ", p=" << t.p << ", k=" << t.k << ")"; +#endif // LOG +} + +template < > +inline +std::ostream& operator<< (std::ostream& os, CIndiceMagico& im) +{ + unsigned c = im.count(); + if (c-- == 0) return os << ""; + for (unsigned i = 0; i < c; ++i) + os << *im[i] << "\n"; + os << *im[c]; + return os; }