MultiAgentDecisionProcess
PrintTools.h File Reference
#include <vector>
#include <set>
#include <sstream>
#include <iomanip>
#include "boost/numeric/ublas/vector.hpp"
#include "boost/numeric/ublas/vector_sparse.hpp"
#include <boost/bimap.hpp>
#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>

Namespaces

 PrintTools
 PrintTools contains functionality for printing vectors etc.
 

Functions

template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)
 adding general stream operator for vector More...
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::set< T > &s)
 adding general stream operator for set More...
 
template<typename Key , typename Value >
std::ostream & operator<< (std::ostream &os, const std::map< Key, Value > &m)
 adding general stream operator for map More...
 
template<typename Key , typename Value >
std::ostream & operator<< (std::ostream &os, const boost::bimap< Key, Value > &b)
 adding general stream operator for bimap More...
 
template<typename T , typename D , typename H , typename E >
std::ostream & operator<< (std::ostream &os, const boost::unordered_map< T, D, H, E > &s)
 adding general stream operator for unordered_map More...
 
template<typename T , typename H , typename E >
std::ostream & operator<< (std::ostream &os, const boost::unordered_set< T, H, E > &s)
 adding general stream operator for unordered_set More...
 
template<class T >
static void PrintTools::PrintCout (const T &v)
 
template<class T >
static void PrintTools::PrintCout (const std::vector< T > &v)
 
template<class T >
static void PrintTools::PrintCout (const std::set< T > &v)
 
template<class T >
static void PrintTools::PrintProgress (T prefix, LIndex i, LIndex nr, size_t interval)
 
template<class T >
static void PrintTools::PrintVectorCout (const T &v)
 Prints a vector using cout - i.e. More...
 
template<class T >
static void PrintTools::PrintVectorCout (const std::vector< T > &v)
 
template<class T >
static void PrintTools::PrintVectorCout (const boost::numeric::ublas::mapped_vector< T > &v)
 
template<class T >
static void PrintTools::PrintVectorCout (const boost::numeric::ublas::compressed_vector< T > &v)
 
template<class T >
static void PrintTools::PrintVectorCout (const boost::numeric::ublas::coordinate_vector< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrint (const T &v)
 
template<class T >
static std::string PrintTools::SoftPrint (const std::vector< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrint (const std::set< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrintSet (const T &v)
 
template<class T >
static std::string PrintTools::SoftPrintSet (const std::set< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrintVector (const T &v)
 
template<class T >
static std::string PrintTools::SoftPrintVector (const std::vector< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrintVector (const boost::numeric::ublas::mapped_vector< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrintVector (const boost::numeric::ublas::compressed_vector< T > &v)
 
template<class T >
static std::string PrintTools::SoftPrintVector (const boost::numeric::ublas::coordinate_vector< T > &v)
 

Function Documentation

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

adding general stream operator for vector

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const std::set< T > &  s 
)

adding general stream operator for set

template<typename Key , typename Value >
std::ostream& operator<< ( std::ostream &  os,
const std::map< Key, Value > &  m 
)

adding general stream operator for map

template<typename Key , typename Value >
std::ostream& operator<< ( std::ostream &  os,
const boost::bimap< Key, Value > &  b 
)

adding general stream operator for bimap

template<typename T , typename D , typename H , typename E >
std::ostream& operator<< ( std::ostream &  os,
const boost::unordered_map< T, D, H, E > &  s 
)

adding general stream operator for unordered_map

template<typename T , typename H , typename E >
std::ostream& operator<< ( std::ostream &  os,
const boost::unordered_set< T, H, E > &  s 
)

adding general stream operator for unordered_set