Vowpal Wabbit
vowpalwabbit
error_reporting.h
Go to the documentation of this file.
1
#pragma once
2
typedef
void (*
trace_message_t
)(
void
* context,
const
std::string&);
3
4
// TODO: change to virtual class
5
6
// invoke trace_listener when << endl is encountered.
7
class
vw_ostream
:
public
std::ostream
8
{
9
class
vw_streambuf
:
public
std::stringbuf
10
{
11
vw_ostream
&
parent
;
12
13
public
:
14
vw_streambuf
(
vw_ostream
& str) : parent(str){};
15
16
virtual
int
sync
();
17
};
18
vw_streambuf
buf
;
19
20
public
:
21
vw_ostream
();
22
23
void
*
trace_context
;
24
trace_message_t
trace_listener
;
25
};
vw_ostream::buf
vw_streambuf buf
Definition:
error_reporting.h:18
vw_ostream
Definition:
error_reporting.h:7
vw_ostream::vw_streambuf::parent
vw_ostream & parent
Definition:
error_reporting.h:11
vw_ostream::vw_streambuf::sync
virtual int sync()
Definition:
global_data.cc:246
vw_ostream::vw_streambuf
Definition:
error_reporting.h:9
vw_ostream::vw_streambuf::vw_streambuf
vw_streambuf(vw_ostream &str)
Definition:
error_reporting.h:14
vw_ostream::trace_context
void * trace_context
Definition:
error_reporting.h:23
trace_message_t
void(* trace_message_t)(void *context, const std::string &)
Definition:
error_reporting.h:2
vw_ostream::trace_listener
trace_message_t trace_listener
Definition:
error_reporting.h:24
vw_ostream::vw_ostream
vw_ostream()
Definition:
global_data.cc:257
Generated on Thu Apr 9 2020 14:45:24 for Vowpal Wabbit by
1.8.13