#include <omnetpp.h>
#include <vector>
#include <string>
#include "ConstType.h"
#include "IPAddress.h"
#include "IPDatagram.h"
Defines | |
| #define | PUSH_OPER 0 |
| #define | SWAP_OPER 1 |
| #define | POP_OPER 2 |
Typedefs | |
| typedef std::vector< LabelOp > | LabelOpVector |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const LIBTable::LIBEntry &lib) |
| std::ostream & | operator<< (std::ostream &os, const LabelOpVector &label) |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
00207 {
00208 os << "{";
00209 for (unsigned int i = 0; i < label.size(); i++)
00210 {
00211 switch(label[i].optcode)
00212 {
00213 case PUSH_OPER:
00214 os << "PUSH " << label[i].label;
00215 break;
00216
00217 case SWAP_OPER:
00218 os << "SWAP " << label[i].label;
00219 break;
00220
00221 case POP_OPER:
00222 os << "POP";
00223 break;
00224
00225 default:
00226 ASSERT(false);
00227 }
00228
00229 if (i < label.size() - 1)
00230 os << "; ";
00231 else
00232 os << "}";
00233 }
00234 return os;
00235 }
|
|
||||||||||||
|
00238 {
00239 os << "inLabel:" << lib.inLabel;
00240 os << " inInterface:" << lib.inInterface;
00241 os << " outLabel:" << lib.outLabel;
00242 os << " outInterface:" << lib.outInterface;
00243 os << " color:" << lib.color;
00244 return os;
00245 }
|
1.4.1