CYCLUS
Loading...
Searching...
No Matches
prettyprint.hpp File Reference
#include <ostream>
#include <utility>
#include <iterator>
#include <set>
#include <tr1/tuple>
#include <tr1/unordered_set>

Go to the source code of this file.

Classes

struct  pretty_print::array_wrapper_n< T >
 
struct  pretty_print::conditional< bool, S, T >
 
struct  pretty_print::conditional< false, S, T >
 
struct  pretty_print::conditional< true, S, T >
 
struct  pretty_print::custom_delims< Delims >
 
struct  pretty_print::custom_delims_base
 
struct  pretty_print::custom_delims_wrapper< T, Delims >
 
struct  pretty_print::delimiters< T, TChar >
 
struct  pretty_print::delimiters< ::std::multiset< T, TComp, TAllocator >, char >
 
struct  pretty_print::delimiters< ::std::multiset< T, TComp, TAllocator >, wchar_t >
 
struct  pretty_print::delimiters< ::std::pair< T1, T2 >, char >
 
struct  pretty_print::delimiters< ::std::pair< T1, T2 >, wchar_t >
 
struct  pretty_print::delimiters< ::std::set< T, TComp, TAllocator >, char >
 
struct  pretty_print::delimiters< ::std::set< T, TComp, TAllocator >, wchar_t >
 
struct  pretty_print::delimiters< ::std::tr1::unordered_multiset< T, THash, TEqual, TAllocator >, char >
 
struct  pretty_print::delimiters< ::std::tr1::unordered_multiset< T, THash, TEqual, TAllocator >, wchar_t >
 
struct  pretty_print::delimiters< ::std::tr1::unordered_set< T, THash, TEqual, TAllocator >, char >
 
struct  pretty_print::delimiters< ::std::tr1::unordered_set< T, THash, TEqual, TAllocator >, wchar_t >
 
struct  pretty_print::delimiters< T, char >
 
struct  pretty_print::delimiters< T, wchar_t >
 
struct  pretty_print::delimiters_values< TChar >
 
struct  pretty_print::has_begin_end< T >::Derived
 
struct  pretty_print::has_begin_end< T >::Dummy
 
struct  pretty_print::enable_if< bool, T >
 
struct  pretty_print::enable_if< true, T >
 
struct  pretty_print::has_begin_end< T >::Fallback
 
struct  pretty_print::get_iterator< T >
 
struct  pretty_print::get_iterator< T[N]>
 
struct  pretty_print::has_begin_end< T >
 
struct  pretty_print::has_const_iterator< T >
 
struct  pretty_print::is_container< T >
 
struct  pretty_print::is_container< char[N]>
 
struct  pretty_print::is_container< T[N]>
 
struct  pretty_print::pretty_tuple_helper< Tuple, N, TChar, TCharTraits >
 
struct  pretty_print::pretty_tuple_helper< Tuple, 1, TChar, TCharTraits >
 
struct  pretty_print::print_container_helper< T, TChar, TCharTraits, TDelimiters >
 
struct  pretty_print::tuple_dummy_t
 

Namespaces

namespace  pretty_print
 
namespace  std
 

Macros

#define TUPLE_ARGS   T0, T1, T2, T3, T4, T5, T6, T7, T8, T9
 
#define TUPLE_PARAMS
 

Typedefs

typedef std::pair< tuple_dummy_t, tuple_dummy_tpretty_print::tuple_dummy_pair
 

Functions

template<typename T >
enable_if< has_const_iterator< T >::value, typenameT::const_iterator >::type pretty_print::begin (const T &c)
 
template<typename T , size_t N>
const T * pretty_print::begin (const T(&x)[N])
 
template<typename T >
enable_if< has_const_iterator< T >::value, typenameT::const_iterator >::type pretty_print::end (const T &c)
 
template<typename T , size_t N>
const T * pretty_print::end (const T(&x)[N])
 
template<typename T , typename TChar , typename TCharTraits , typename TDelimiters >
basic_ostream< TChar, TCharTraits > & std::operator<< (basic_ostream< TChar, TCharTraits > &stream, const ::pretty_print::print_container_helper< T, TChar, TCharTraits, TDelimiters > &helper)
 
template<typename T1 , typename T2 , typename TChar , typename TCharTraits >
basic_ostream< TChar, TCharTraits > & std::operator<< (basic_ostream< TChar, TCharTraits > &stream, const pair< T1, T2 > &value)
 
template<typename T , typename TChar , typename TCharTraits >
typename::pretty_print::enable_if<::pretty_print::is_container< T >::value, basic_ostream< TChar, TCharTraits > & >::type std::operator<< (basic_ostream< TChar, TCharTraits > &stream, const T &container)
 
template<typename TChar , typename TCharTraits , TUPLE_PARAMS >
basic_ostream< TChar, TCharTraits > & std::operator<< (basic_ostream< TChar, TCharTraits > &stream, const tr1::tuple< TUPLE_ARGS > &value)
 
template<typename TChar , typename TCharTraits , typename Delims >
std::basic_ostream< TChar, TCharTraits > & operator<< (std::basic_ostream< TChar, TCharTraits > &s, const pretty_print::custom_delims< Delims > &p)
 
template<typename T >
pretty_print::array_wrapper_n< T > pretty_print_array (const T *const a, size_t n)
 

Macro Definition Documentation

◆ TUPLE_ARGS

#define TUPLE_ARGS   T0, T1, T2, T3, T4, T5, T6, T7, T8, T9

Definition at line 360 of file prettyprint.hpp.

◆ TUPLE_PARAMS

#define TUPLE_PARAMS
Value:
typename T0, typename T1, typename T2, typename T3, typename T4, \
typename T5, typename T6, typename T7, typename T8, typename T9

Definition at line 357 of file prettyprint.hpp.

Function Documentation

◆ operator<<()

template<typename TChar , typename TCharTraits , typename Delims >
std::basic_ostream< TChar, TCharTraits > & operator<< ( std::basic_ostream< TChar, TCharTraits > & s,
const pretty_print::custom_delims< Delims > & p )
inline

Definition at line 1 of file prettyprint.hpp.

◆ pretty_print_array()

template<typename T >
pretty_print::array_wrapper_n< T > pretty_print_array ( const T *const a,
size_t n )
inline

Definition at line 404 of file prettyprint.hpp.