VectorHelper.h File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
Sept 2002
Version:
Id
VectorHelper.h 8236 2010-02-10 11:16:41Z behrisch

Definition in file VectorHelper.h.

#include <config.h>
#include <vector>
#include <algorithm>
#include <iostream>

Go to the source code of this file.

Data Structures

class  VectorHelper< T >

Typedefs

typedef std::vector< boolBoolVector
typedef std::vector< SUMOReal > DoubleVector
typedef std::vector< int > IntVector
 Definition of a vector of unsigned ints.

Functions

template<class T>
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)


Typedef Documentation

typedef std::vector<bool> BoolVector

Definition at line 40 of file VectorHelper.h.

typedef std::vector<SUMOReal> DoubleVector

Definition at line 41 of file VectorHelper.h.

Definition of a vector of unsigned ints.

Definition at line 42 of file VectorHelper.h.


Function Documentation

template<class T>
std::ostream& operator<< ( std::ostream &  os,
const std::vector< T > &  v 
) [inline]

Definition at line 164 of file VectorHelper.h.

00164                                                               {
00165     for (typename std::vector<T>::const_iterator i=v.begin(); i!=v.end(); i++) {
00166         if (i!=v.begin()) {
00167             os << ", ";
00168         }
00169         os << (*i);
00170     }
00171     return os;
00172 }


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