INET Framework for OMNeT++/OMNEST
|
Functions | |
Define_Module (LIBTable) | |
std::ostream & | operator<< (std::ostream &os, const LabelOpVector &label) |
std::ostream & | operator<< (std::ostream &os, const LIBTable::LIBEntry &lib) |
Define_Module | ( | LIBTable | ) |
std::ostream& operator<< | ( | std::ostream & | os, |
const LIBTable::LIBEntry & | lib | ||
) |
{ os << "inLabel:" << lib.inLabel; os << " inInterface:" << lib.inInterface; os << " outLabel:" << lib.outLabel; os << " outInterface:" << lib.outInterface; os << " color:" << lib.color; return os; }
std::ostream& operator<< | ( | std::ostream & | os, |
const LabelOpVector & | label | ||
) |
{ os << "{"; for (unsigned int i = 0; i < label.size(); i++) { switch(label[i].optcode) { case PUSH_OPER: os << "PUSH " << label[i].label; break; case SWAP_OPER: os << "SWAP " << label[i].label; break; case POP_OPER: os << "POP"; break; default: ASSERT(false); } if (i < label.size() - 1) os << "; "; else os << "}"; } return os; }