Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LIBTable.cc File Reference

#include <iostream>
#include "LIBTable.h"
#include "XMLUtils.h"
#include "RoutingTableAccess.h"

Functions

 Define_Module (LIBTable)
std::ostream & operator<< (std::ostream &os, const LabelOpVector &label)
std::ostream & operator<< (std::ostream &os, const LIBTable::LIBEntry &lib)


Function Documentation

Define_Module LIBTable   ) 
 

std::ostream& operator<< std::ostream &  os,
const LIBTable::LIBEntry lib
 

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 }

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 }


Generated on Thu Oct 19 18:22:19 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0