00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef TEUCHOS_BASIC_O_BLACK_HOLE_STREAM_H
00033 #define TEUCHOS_BASIC_O_BLACK_HOLE_STREAM_H
00034
00035 #include "Teuchos_ConfigDefs.hpp"
00036
00037 namespace Teuchos {
00038
00040
00046 template<typename _CharT, typename _Traits>
00047 class basic_oblackholestream
00048 : virtual public std::basic_ostream<_CharT, _Traits>
00049 {
00050 public:
00051
00052
00053 typedef _CharT char_type;
00054 typedef typename _Traits::int_type int_type;
00055 typedef typename _Traits::pos_type pos_type;
00056 typedef typename _Traits::off_type off_type;
00057 typedef _Traits traits_type;
00058
00059
00060 typedef std::basic_streambuf<_CharT, _Traits> __streambuf_type;
00061 typedef std::basic_ios<_CharT, _Traits> __ios_type;
00062 typedef std::basic_ostream<_CharT, _Traits> __ostream_type;
00063
00064
00065 explicit basic_oblackholestream() : __ostream_type(NULL) {}
00066
00067 virtual ~basic_oblackholestream() { }
00068
00069
00070
00071 __ostream_type& operator<<(__ostream_type& (*__pf)(__ostream_type&)) { return *this; }
00072 __ostream_type& operator<<(__ios_type& (*__pf)(__ios_type&)) { return *this; }
00073 __ostream_type& operator<<(std::ios_base& (*__pf) (std::ios_base&)) { return *this; }
00074
00075
00076 __ostream_type& operator<<(long __n) { return *this; }
00077 __ostream_type& operator<<(unsigned long __n) { return *this; }
00078 __ostream_type& operator<<(bool __n) { return *this; }
00079 __ostream_type& operator<<(short __n) { return *this; }
00080 __ostream_type& operator<<(unsigned short __n) { return *this; }
00081 __ostream_type& operator<<(int __n) { return *this; }
00082 __ostream_type& operator<<(unsigned int __n) { return *this; }
00083 __ostream_type& operator<<(double __f) { return *this; }
00084 __ostream_type& operator<<(float __f) { return *this; }
00085 __ostream_type& operator<<(long double __f) { return *this; }
00086 __ostream_type& operator<<(const void* __p) { return *this; }
00087 __ostream_type& operator<<(__streambuf_type* __sb) { return *this; }
00088
00089
00090 __ostream_type& put(char_type __c) { return *this; }
00091 __ostream_type& write(const char_type* __s, std::streamsize __n) { return *this; }
00092 __ostream_type& flush() { return *this; }
00093
00094
00095 pos_type tellp() { return 0; }
00096 __ostream_type& seekp(pos_type) { return *this; }
00097 __ostream_type& seekp(off_type, std::ios_base::seekdir) { return *this; }
00098
00099 };
00100
00101 }
00102
00103 #endif // TEUCHOS_BASIC_O_BLACK_HOLE_STREAM_H