Functions

CoordinateSystem.cc File Reference

#include <ProxNodeHandle.h>
#include <CoordinateSystem.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const GnpNpsCoordsInfo &info)
std::ostream & operator<< (std::ostream &os, const VivaldiCoordsInfo &info)

Detailed Description

Author:
Bernhard Heep

Definition in file CoordinateSystem.cc.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const GnpNpsCoordsInfo info 
)

Definition at line 72 of file CoordinateSystem.cc.

{
    if (!info.getCoords().size()) throw cRuntimeError("dim = 0");

    os << "< ";
    uint8_t i;
    for (i = 0; i < info.getCoords().size() - 1; ++i) {
        os << info.getCoords(i) << ", ";
    }
    os << info.getCoords(i) << " >";
    if (info.getLayer() != -1)
        os << ", NPS-Layer = " << (int)info.getLayer();

    return os;
}

std::ostream& operator<< ( std::ostream &  os,
const VivaldiCoordsInfo info 
)

Definition at line 142 of file CoordinateSystem.cc.

{
    if (!info.getCoords().size()) throw cRuntimeError("dim = 0");

    os << "< ";
    uint8_t i;
    for (i = 0; i < info.getCoords().size() - 1; ++i) {
        os << info.getCoords(i) << ", ";
    }
    os << info.getCoords(i) << " >";
    os << ", Err = " << info.getError();
    if (info.getHeightVector() != -1.0)
        os << ", HeightVec = " << info.getHeightVector();

    return os;
}