OverSim
CBRArea Class Reference

Auxiliary class for CoordBasedRouting: Holds the min and max border values for each dimension and the area's NodeID prefix. More...

#include <CoordBasedRouting.h>

Public Member Functions

 CBRArea (uint8_t dim)
 CBRArea Constructor, reserves space for min & max vectors.
 CBRArea (const Coords &bottoms, const Coords &tops, const std::string &prefix)
 ~CBRArea ()

Public Attributes

Coords min
Coords max
std::string prefix

Friends

std::ostream & operator<< (std::ostream &os, const CBRArea &area)

Detailed Description

Auxiliary class for CoordBasedRouting: Holds the min and max border values for each dimension and the area's NodeID prefix.

Definition at line 41 of file CoordBasedRouting.h.

Constructor & Destructor Documentation

CBRArea::CBRArea ( uint8_t  dim)

CBRArea Constructor, reserves space for min & max vectors.

Definition at line 438 of file CoordBasedRouting.cc.

: min(dim, 0.0), max(dim, 0.0)
{
//min.reserve(dim);
//max.reserve(dim);
}
CBRArea::CBRArea ( const Coords bottoms,
const Coords tops,
const std::string &  prefix 
)
inline

Definition at line 46 of file CoordBasedRouting.h.

: min(bottoms), max(tops), prefix(prefix) {};
CBRArea::~CBRArea ( )
inline

Definition at line 50 of file CoordBasedRouting.h.

{};

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CBRArea area 
)
friend

Definition at line 445 of file CoordBasedRouting.cc.

{
for (uint i = 0; i < area.min.size(); ++i) {
os << "|" << area.min[i] << " - " << area.max[i] << "|";
}
os << " -> \"" << area.prefix << "\"";
return os;
}

Member Data Documentation


The documentation for this class was generated from the following files: