INET Framework for OMNeT++/OMNEST
ChannelControl.cc File Reference
#include "ChannelControl.h"
#include "FWMath.h"
#include <cassert>

Defines

#define coreEV   (ev.isDisabled()||!coreDebug) ? ev : ev << "ChannelControl: "

Functions

 Define_Module (ChannelControl)
std::ostream & operator<< (std::ostream &os, const ChannelControl::HostEntry &h)
std::ostream & operator<< (std::ostream &os, const ChannelControl::TransmissionList &tl)

Define Documentation

#define coreEV   (ev.isDisabled()||!coreDebug) ? ev : ev << "ChannelControl: "

Function Documentation

Define_Module ( ChannelControl  )
std::ostream& operator<< ( std::ostream &  os,
const ChannelControl::TransmissionList tl 
)
{
    for (ChannelControl::TransmissionList::const_iterator it = tl.begin(); it != tl.end(); ++it)
        os << endl << *it;
    return os;
}
std::ostream& operator<< ( std::ostream &  os,
const ChannelControl::HostEntry h 
)
{
    os << h.host->getFullPath() << " (x=" << h.pos.x << ",y=" << h.pos.y << "), "
       << h.neighbors.size() << " neighbor(s)";
    return os;
}