NBRequest.cpp File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
Tue, 20 Nov 2001
Version:
Id
NBRequest.cpp 8472 2010-03-18 20:00:31Z behrisch

Definition in file NBRequest.cpp.

#include <config.h>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include <bitset>
#include <sstream>
#include <map>
#include <cassert>
#include <utils/common/MsgHandler.h>
#include <utils/common/ToString.h>
#include "NBEdge.h"
#include "NBJunctionLogicCont.h"
#include "NBContHelper.h"
#include "NBTrafficLightLogic.h"
#include "NBTrafficLightLogicCont.h"
#include "NBNode.h"
#include "NBRequest.h"
#include <utils/options/OptionsCont.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const NBRequest &r)


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const NBRequest r 
)

Definition at line 587 of file NBRequest.cpp.

References NBRequest::myForbids, NBRequest::myIncoming, and NBRequest::myOutgoing.

00587                                                {
00588     size_t variations = r.myIncoming->size() * r.myOutgoing->size();
00589     for (size_t i=0; i<variations; i++) {
00590         os << i << ' ';
00591         for (size_t j=0; j<variations; j++) {
00592             if (r.myForbids[i][j])
00593                 os << '1';
00594             else
00595                 os << '0';
00596         }
00597         os << std::endl;
00598     }
00599     os << std::endl;
00600     return os;
00601 }


Generated on Wed May 5 00:06:38 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6