Functions

LIBTable.cc File Reference

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

Go to the source code of this file.

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 
)

Definition at line 237 of file LIBTable.cc.

{
    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 
)

Definition at line 206 of file LIBTable.cc.

{
    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;
}