MLPACK  1.0.8
log.hpp
Go to the documentation of this file.
1 
22 #ifndef __MLPACK_CORE_IO_LOG_HPP
23 #define __MLPACK_CORE_IO_LOG_HPP
24 
25 #include <string>
26 
27 #include "prefixedoutstream.hpp"
28 #include "nulloutstream.hpp"
29 
30 namespace mlpack {
31 
65 class Log
66 {
67  public:
73  static void Assert(bool condition,
74  const std::string& message = "Assert Failed.");
75 
76 
77  // We only use PrefixedOutStream if the program is compiled with debug
78  // symbols.
79 #ifdef DEBUG
80 
82 #else
83 
85 #endif
86 
90 
93 
96 
98  static std::ostream& cout;
99 };
100 
101 }; //namespace mlpack
102 
103 #endif