stl_adds.h File Reference

#include <list>
#include <string>
#include <algorithm>
#include <vector>
Include dependency graph for stl_adds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  join< T >

Namespaces

namespace  std
 

contains some additions to the standard template library


Defines

#define FOREACH(colltype, coll, it)   for( colltype::iterator it = (coll).begin(), __end=(coll).end(); it!= __end; it++)
#define FOREACHI(colltype, coll, it, index)   int index=0; for( colltype::iterator it = (coll).begin(), __end=(coll).end(); it!= __end; it++, index++)
#define FOREACHC(colltype, coll, it)   for( colltype::const_iterator it = (coll).begin(), __end=(coll).end(); it!= __end ; it++ )
#define FOREACHCI(colltype, coll, it, index)   int index=0;for( colltype::const_iterator it = (coll).begin(), __end=(coll).end(); it!= __end; it++, index++)

Functions

template<typename T >
abs (T v)
 absolute function for all types
template<class T , class A >
list< T, A > & operator+= (list< T, A > &l1, const list< T, A > &l2)
 += operators for list (list concat)
template<class T , class A >
list< T, A > & operator+= (list< T, A > &l1, const T &v)
 += operators for list (append)
template<class T , class A >
list< T, A > operator+ (const list< T, A > &l1, const list< T, A > &l2)
 + operators for lists (list concat)
string itos (int i)
 integer to string with default formating
string itos (int i, const char *)
 integer to string with printf formating string
template<typename Col , typename T >
bool removeElement (Col &col, const T &elem)

Define Documentation

#define FOREACH ( colltype,
coll,
it   )     for( colltype::iterator it = (coll).begin(), __end=(coll).end(); it!= __end; it++)
#define FOREACHC ( colltype,
coll,
it   )     for( colltype::const_iterator it = (coll).begin(), __end=(coll).end(); it!= __end ; it++ )
#define FOREACHCI ( colltype,
coll,
it,
index   )     int index=0;for( colltype::const_iterator it = (coll).begin(), __end=(coll).end(); it!= __end; it++, index++)
#define FOREACHI ( colltype,
coll,
it,
index   )     int index=0; for( colltype::iterator it = (coll).begin(), __end=(coll).end(); it!= __end; it++, index++)
Generated on Thu Jun 28 14:47:50 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3