#define USECHRONO #undef HAVE_MPI #include "eval.hpp" #include #include #include #include using namespace aed; using namespace std; //---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> // COMPLETAR DNI y NOMBRE AQUI: // Nombre: int DNI=41733331; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void listab(aed::btree::iterator it, int abpos, list &abpos_list, list &val_list) { if (it == aed::btree::iterator()) return; // si es lambda no hago nada abpos_list.push_back(abpos); // guardo la posicion y su valor val_list.push_back(*it); listab(it.left(), 2*abpos+1, abpos_list, val_list); // hijo izq listab(it.right(), 2*abpos+2, abpos_list, val_list); // hijo derecho } void listab(aed::btree &B, list &abpos, list &vals) { if (B.begin() == B.end()) return; // si es vacio no hago nada listab(B.begin(), 0, abpos, vals); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(listab,vrbs); ev.evalr<1>(listab,12345,vrbs); return 0; }