agile is hosted by Hepforge, IPPP Durham

std Namespace Reference

Functions

template<typename T >
void operator+= (std::set< T > &s1, const std::set< T > &s2)
template<typename T >
void operator+= (std::vector< T > &s1, const std::vector< T > &s2)
template<typename T >
string join (const std::vector< T > &v, const std::string &sep=" ")

Function Documentation

string std::join ( const std::vector< T > &  v,
const std::string &  sep = " " 
) [inline]

Definition at line 109 of file Utils.hh.

00109                                                                         {
00110     std::stringstream out;
00111     for (size_t i = 0; i < v.size(); ++i) {
00112       if (i != 0) out << sep;
00113       out << v[i];
00114     }
00115     return out.str();
00116   }

void std::operator+= ( std::vector< T > &  s1,
const std::vector< T > &  s2 
) [inline]

Definition at line 102 of file Utils.hh.

00102                                                                    {
00103     for (typename std::vector<T>::const_iterator s = s2.begin(); s != s2.end(); ++s) {
00104       s1.push_back(*s);
00105     }
00106   }

void std::operator+= ( std::set< T > &  s1,
const std::set< T > &  s2 
) [inline]

Definition at line 95 of file Utils.hh.

00095                                                              {
00096     for (typename std::set<T>::const_iterator s = s2.begin(); s != s2.end(); ++s) {
00097       s1.insert(*s);
00098     }
00099   }

Generated on Tue Mar 6 10:39:41 2012 for AGILe - A Generator Interface Library (+ executable) by  doxygen 1.6.3