CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
adjgraph.h File Reference
#include <vector>
#include <map>
#include <iostream>

Go to the source code of this file.

Classes

class  graph< N, E >::const_iterator
 
class  graph< N, E >
 
struct  graph< N, E >::value_type
 
struct  graph< N, E >::const_iterator::value_type
 

Functions

template<typename T >
std::ostream & operator<< (std::ostream &o, const std::vector< std::vector< std::pair< T, T > > > v)
 

Function Documentation

template<typename T >
std::ostream& operator<< ( std::ostream &  o,
const std::vector< std::vector< std::pair< T, T > > >  v 
)

Definition at line 450 of file adjgraph.h.

References connectstrParser::o, and findQualityFiles::v.

451 {
452  typedef typename std::vector<std::vector<std::pair<T,T> > > v_t;
453  typedef typename std::vector<std::pair<T,T> > i_t;
454 
455  typename v_t::const_iterator it(v.begin()), ed(v.end());
456  for (; it != ed; ++it) {
457  typename i_t::const_iterator iit(it->begin()), ied(it->end());
458  for(; iit != ied; ++iit) {
459  o << iit->first << ':' << iit->second << std::endl;
460  }
461  }
462  return o;
463 }