MLPACK
1.0.10
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mlpack
core
util
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
37
class
NullOutStream
38
{
39
public
:
43
NullOutStream
() { }
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
Generated by
1.8.3.1