mlpack  1.0.12
nulloutstream.hpp
Go to the documentation of this file.
1 
15 #ifndef __MLPACK_CORE_UTIL_NULLOUTSTREAM_HPP
16 #define __MLPACK_CORE_UTIL_NULLOUTSTREAM_HPP
17 
18 #include <iostream>
19 #include <streambuf>
20 #include <string>
21 
22 namespace mlpack {
23 namespace util {
24 
30 {
31  public:
36 
40  NullOutStream(const NullOutStream& /* other */) { }
41 
43  NullOutStream& operator<<(bool) { return *this; }
45  NullOutStream& operator<<(short) { return *this; }
47  NullOutStream& operator<<(unsigned short) { return *this; }
49  NullOutStream& operator<<(int) { return *this; }
51  NullOutStream& operator<<(unsigned int) { return *this; }
53  NullOutStream& operator<<(long) { return *this; }
55  NullOutStream& operator<<(unsigned long) { return *this; }
57  NullOutStream& operator<<(float) { return *this; }
59  NullOutStream& operator<<(double) { return *this; }
61  NullOutStream& operator<<(long double) { return *this; }
63  NullOutStream& operator<<(void*) { return *this; }
65  NullOutStream& operator<<(const char*) { return *this; }
67  NullOutStream& operator<<(std::string&) { return *this; }
69  NullOutStream& operator<<(std::streambuf*) { return *this; }
71  NullOutStream& operator<<(std::ostream& (*) (std::ostream&)) { return *this; }
73  NullOutStream& operator<<(std::ios& (*) (std::ios&)) { return *this; }
75  NullOutStream& operator<<(std::ios_base& (*) (std::ios_base&))
76  { return *this; }
77 
79  template<typename T>
80  NullOutStream& operator<<(const T&) { return *this; }
81 };
82 
83 } // namespace util
84 } // namespace mlpack
85 
86 #endif
NullOutStream & operator<<(unsigned int)
Does nothing.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: load.hpp:23
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.