MultiAgentDecisionProcess  Release 0.2.1
PrintTools Namespace Reference

PrintTools contains functionality for printing vectors etc. More...

Functions

template<class T >
static void PrintCout (const T &v)
template<class T >
static void PrintCout (const std::vector< T > &v)
template<class T >
static void PrintCout (const std::set< T > &v)
template<class T >
static void PrintProgress (T prefix, LIndex i, LIndex nr, size_t interval)
template<class T >
static void PrintVectorCout (const T &v)
 Prints a vector using cout - i.e.
template<class T >
static void PrintVectorCout (const std::vector< T > &v)
template<class T >
static std::string SoftPrint (const T &v)
template<class T >
static std::string SoftPrint (const std::vector< T > &v)
template<class T >
static std::string SoftPrint (const std::set< T > &v)
template<class T >
static std::string SoftPrintVector (const T &v)
template<class T >
static std::string SoftPrintVector (const std::vector< T > &v)

Detailed Description

PrintTools contains functionality for printing vectors etc.

The SoftPrint*() functions returns strings, the Print*() print to standard out.

Function Documentation

template<class T >
static void PrintTools::PrintCout ( const T &  v)
static

Definition at line 84 of file PrintTools.h.

template<class T >
static void PrintTools::PrintCout ( const std::vector< T > &  v)
static

Definition at line 90 of file PrintTools.h.

References PrintVectorCout().

template<class T >
static void PrintTools::PrintCout ( const std::set< T > &  v)
static

Definition at line 96 of file PrintTools.h.

References SoftPrint().

template<class T >
static void PrintTools::PrintProgress ( prefix,
LIndex  i,
LIndex  nr,
size_t  interval 
)
static
template<class T >
static void PrintTools::PrintVectorCout ( const T &  v)
static

Prints a vector using cout - i.e.

the data type can be written to cout using << (operator<< must be defined for T).

Definition at line 72 of file PrintTools.h.

Referenced by AlphaVectorPlanning::GetDuplicateIndices(), DICEPSPlanner::Plan(), PlanningUnitMADPDiscrete::Print(), PrintCout(), and Perseus::SampleNotImprovedBeliefIndex().

template<class T >
static void PrintTools::PrintVectorCout ( const std::vector< T > &  v)
static

Definition at line 78 of file PrintTools.h.

References SoftPrintVector().

template<class T >
static std::string PrintTools::SoftPrint ( const T &  v)
static

Definition at line 102 of file PrintTools.h.

Referenced by PrintCout(), SoftPrint(), and JointPolicyPureVector::SoftPrint().

template<class T >
static std::string PrintTools::SoftPrint ( const std::vector< T > &  v)
static

Definition at line 110 of file PrintTools.h.

References SoftPrintVector().

template<class T >
static std::string PrintTools::SoftPrint ( const std::set< T > &  v)
static

Definition at line 116 of file PrintTools.h.

References SoftPrint().

template<class T >
static std::string PrintTools::SoftPrintVector ( const std::vector< T > &  v)
static

Definition at line 51 of file PrintTools.h.

References SoftPrintVector().