Support Software for Vector Reduction/Transformation Operators Version of the Day
Public Types | Public Member Functions
RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits > Class Template Reference

Stream buffering class that performs the magic of indenting data sent to an std::ostream object. More...

#include <RTOpPack_SPMD_apply_op_def.hpp>

List of all members.

Public Types

typedef CharT char_type
 
typedef Traits traits_type
 
typedef traits_type::int_type int_type
 
typedef traits_type::pos_type pos_type
 
typedef traits_type::off_type off_type
 

Public Member Functions

 basic_FancyOStream_buf (const RCP< std::basic_ostream< char_type, traits_type > > &oStream, const std::basic_string< char_type, traits_type > &tabIndentStr, const int startingTab, const bool showLinePrefix, const int maxLenLinePrefix, const bool showTabCount, const bool showProcRank)
 
void initialize (const RCP< std::basic_ostream< char_type, traits_type > > &oStream, const std::basic_string< char_type, traits_type > &tabIndentStr, const int startingTab, const bool showLinePrefix, const int maxLenLinePrefix, const bool showTabCount, const bool showProcRank)
 
RCP< std::basic_ostream
< char_type, traits_type > > 
getOStream ()
 
void setTabIndentStr (const std::basic_string< char_type, traits_type > &tabIndentStr)
 
const std::basic_string
< char_type, traits_type > & 
getTabIndentStr () const
 
void setShowLinePrefix (const bool showLinePrefix)
 
bool getShowLinePrefix () const
 
void setMaxLenLinePrefix (const int maxLenLinePrefix)
 
int getMaxLenLinePrefix () const
 
void setShowTabCount (const bool showTabCount)
 
bool getShowTabCount () const
 
void setShowProcRank (const bool showProcRank)
 
bool getShowProcRank () const
 
void setProcRankAndSize (const int procRank, const int numProcs)
 
int getProcRank () const
 
int getNumProcs () const
 
void setOutputToRootOnly (const int rootRank)
 
int getOutputToRootOnly () const
 
void pushTab (const int tabs)
 
int getNumCurrTabs () const
 
void popTab ()
 
void pushLinePrefix (const std::basic_string< char_type, traits_type > &linePrefix)
 
void popLinePrefix ()
 
const std::basic_string
< char_type, traits_type > & 
getTopLinePrefix () const
 
void pushDisableTabbing ()
 
void popDisableTabbing ()
 

Protected overridden functions from std::basic_streambuf

std::streamsize xsputn (const char_type *s, std::streamsize n)
 
int_type overflow (int_type c)
 

Detailed Description

template<typename CharT, typename Traits>
class RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >

Stream buffering class that performs the magic of indenting data sent to an std::ostream object.

Note, this is not a user-level class. Users should use basic_FancyOStream.

Definition at line 63 of file RTOpPack_SPMD_apply_op_def.hpp.


Member Typedef Documentation

template<typename CharT, typename Traits>
typedef CharT RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::char_type

Definition at line 68 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT, typename Traits>
typedef Traits RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::traits_type

Definition at line 70 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT, typename Traits>
typedef traits_type::int_type RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::int_type

Definition at line 72 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT, typename Traits>
typedef traits_type::pos_type RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::pos_type

Definition at line 74 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT, typename Traits>
typedef traits_type::off_type RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::off_type

Definition at line 76 of file RTOpPack_SPMD_apply_op_def.hpp.


Constructor & Destructor Documentation

template<typename CharT , typename Traits >
RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::basic_FancyOStream_buf ( const RCP< std::basic_ostream< char_type, traits_type > > &  oStream,
const std::basic_string< char_type, traits_type > &  tabIndentStr,
const int  startingTab,
const bool  showLinePrefix,
const int  maxLenLinePrefix,
const bool  showTabCount,
const bool  showProcRank 
)

Definition at line 754 of file RTOpPack_SPMD_apply_op_def.hpp.


Member Function Documentation

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::initialize ( const RCP< std::basic_ostream< char_type, traits_type > > &  oStream,
const std::basic_string< char_type, traits_type > &  tabIndentStr,
const int  startingTab,
const bool  showLinePrefix,
const int  maxLenLinePrefix,
const bool  showTabCount,
const bool  showProcRank 
)

Definition at line 770 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
RCP< std::basic_ostream< CharT, Traits > > RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getOStream ( )

Definition at line 801 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setTabIndentStr ( const std::basic_string< char_type, traits_type > &  tabIndentStr)

Definition at line 808 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
const std::basic_string< CharT, Traits > & RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getTabIndentStr ( ) const

Definition at line 818 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setShowLinePrefix ( const bool  showLinePrefix)

Definition at line 825 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
bool RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getShowLinePrefix ( ) const

Definition at line 832 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setMaxLenLinePrefix ( const int  maxLenLinePrefix)

Definition at line 839 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
int RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getMaxLenLinePrefix ( ) const

Definition at line 847 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setShowTabCount ( const bool  showTabCount)

Definition at line 854 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
bool RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getShowTabCount ( ) const

Definition at line 861 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setShowProcRank ( const bool  showProcRank)

Definition at line 868 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
bool RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getShowProcRank ( ) const

Definition at line 875 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setProcRankAndSize ( const int  procRank,
const int  numProcs 
)

Definition at line 882 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
int RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getProcRank ( ) const

Definition at line 892 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
int RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getNumProcs ( ) const

Definition at line 899 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::setOutputToRootOnly ( const int  rootRank)

Definition at line 906 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
int RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getOutputToRootOnly ( ) const

Definition at line 930 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::pushTab ( const int  tabs)

Definition at line 937 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
int RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getNumCurrTabs ( ) const

Definition at line 951 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::popTab ( )

Definition at line 958 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::pushLinePrefix ( const std::basic_string< char_type, traits_type > &  linePrefix)

Definition at line 966 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::popLinePrefix ( )

Definition at line 975 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
const std::basic_string< CharT, Traits > & RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::getTopLinePrefix ( ) const

Definition at line 983 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::pushDisableTabbing ( )

Definition at line 990 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
void RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::popDisableTabbing ( )

Definition at line 997 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
std::streamsize RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::xsputn ( const char_type s,
std::streamsize  n 
) [protected]

Definition at line 1007 of file RTOpPack_SPMD_apply_op_def.hpp.

template<typename CharT , typename Traits >
basic_FancyOStream_buf< CharT, Traits >::int_type RTOpPack::Teuchos::basic_FancyOStream_buf< CharT, Traits >::overflow ( int_type  c) [protected]

Definition at line 1021 of file RTOpPack_SPMD_apply_op_def.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends