MLPACK  1.0.11
nulloutstream.hpp
Go to the documentation of this file.
1 
23 #ifndef __MLPACK_CORE_UTIL_NULLOUTSTREAM_HPP
24 #define __MLPACK_CORE_UTIL_NULLOUTSTREAM_HPP
25 
26 #include <iostream>
27 #include <streambuf>
28 #include <string>
29 
30 namespace mlpack {
31 namespace util {
32 
38 {
39  public:
44 
48  NullOutStream(const NullOutStream& /* other */) { }
49 
51  NullOutStream& operator<<(bool) { return *this; }
53  NullOutStream& operator<<(short) { return *this; }
55  NullOutStream& operator<<(unsigned short) { return *this; }
57  NullOutStream& operator<<(int) { return *this; }
59  NullOutStream& operator<<(unsigned int) { return *this; }
61  NullOutStream& operator<<(long) { return *this; }
63  NullOutStream& operator<<(unsigned long) { return *this; }
65  NullOutStream& operator<<(float) { return *this; }
67  NullOutStream& operator<<(double) { return *this; }
69  NullOutStream& operator<<(long double) { return *this; }
71  NullOutStream& operator<<(void*) { return *this; }
73  NullOutStream& operator<<(const char*) { return *this; }
75  NullOutStream& operator<<(std::string&) { return *this; }
77  NullOutStream& operator<<(std::streambuf*) { return *this; }
79  NullOutStream& operator<<(std::ostream& (*) (std::ostream&)) { return *this; }
81  NullOutStream& operator<<(std::ios& (*) (std::ios&)) { return *this; }
83  NullOutStream& operator<<(std::ios_base& (*) (std::ios_base&))
84  { return *this; }
85 
87  template<typename T>
88  NullOutStream& operator<<(const T&) { return *this; }
89 };
90 
91 } // namespace util
92 } // namespace mlpack
93 
94 #endif
NullOutStream & operator<<(unsigned int)
Does nothing.
NullOutStream & operator<<(long)
Does nothing.
NullOutStream & operator<<(std::ios &(*)(std::ios &))
Does nothing.
NullOutStream & operator<<(std::streambuf *)
Does nothing.
NullOutStream(const NullOutStream &)
Does nothing.
NullOutStream & operator<<(int)
Does nothing.
NullOutStream & operator<<(const char *)
Does nothing.
NullOutStream & operator<<(unsigned short)
Does nothing.
NullOutStream & operator<<(short)
Does nothing.
NullOutStream & operator<<(float)
Does nothing.
NullOutStream & operator<<(std::ostream &(*)(std::ostream &))
Does nothing.
NullOutStream & operator<<(std::string &)
Does nothing.
NullOutStream & operator<<(long double)
Does nothing.
NullOutStream & operator<<(std::ios_base &(*)(std::ios_base &))
Does nothing.
NullOutStream & operator<<(void *)
Does nothing.
NullOutStream & operator<<(const T &)
Does nothing.
NullOutStream & operator<<(unsigned long)
Does nothing.
NullOutStream & operator<<(double)
Does nothing.
NullOutStream & operator<<(bool)
Does nothing.
Used for Log::Debug when not compiled with debugging symbols.