Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
c8c2dedc
Commit
c8c2dedc
authored
Oct 28, 2014
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/teestream.{h,cpp}: delete unused files
parent
35082058
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
73 deletions
+0
-73
algo/core/teestream.cpp
algo/core/teestream.cpp
+0
-8
algo/core/teestream.h
algo/core/teestream.h
+0
-63
algo/tests/testCluster.cpp
algo/tests/testCluster.cpp
+0
-1
algo/vidjil.cpp
algo/vidjil.cpp
+0
-1
No files found.
algo/core/teestream.cpp
deleted
100644 → 0
View file @
35082058
#include "teestream.h"
teestream
::
teestream
(
std
::
ostream
&
o1
,
std
::
ostream
&
o2
)
:
std
::
ostream
(
&
tbuf
)
,
tbuf
(
o1
.
rdbuf
(),
o2
.
rdbuf
())
{
}
algo/core/teestream.h
deleted
100644 → 0
View file @
35082058
#include <fstream>
#include <iostream>
template
<
typename
char_type
,
typename
traits
=
std
::
char_traits
<
char_type
>
>
class
basic_teebuf
:
public
std
::
basic_streambuf
<
char_type
,
traits
>
{
public:
typedef
typename
traits
::
int_type
int_type
;
basic_teebuf
(
std
::
basic_streambuf
<
char_type
,
traits
>
*
sb1
,
std
::
basic_streambuf
<
char_type
,
traits
>
*
sb2
)
:
sb1
(
sb1
)
,
sb2
(
sb2
)
{
}
private:
virtual
int
sync
()
{
int
const
r1
=
sb1
->
pubsync
();
int
const
r2
=
sb2
->
pubsync
();
return
r1
==
0
&&
r2
==
0
?
0
:
-
1
;
}
virtual
int_type
overflow
(
int_type
c
)
{
int_type
const
eof
=
traits
::
eof
();
if
(
traits
::
eq_int_type
(
c
,
eof
))
{
return
traits
::
not_eof
(
c
);
}
else
{
char_type
const
ch
=
traits
::
to_char_type
(
c
);
int_type
const
r1
=
sb1
->
sputc
(
ch
);
int_type
const
r2
=
sb2
->
sputc
(
ch
);
return
traits
::
eq_int_type
(
r1
,
eof
)
||
traits
::
eq_int_type
(
r2
,
eof
)
?
eof
:
c
;
}
}
private:
std
::
basic_streambuf
<
char_type
,
traits
>
*
sb1
;
std
::
basic_streambuf
<
char_type
,
traits
>
*
sb2
;
};
typedef
basic_teebuf
<
char
>
teebuf
;
class
teestream
:
public
std
::
ostream
{
public:
// Construct an ostream which tees output to the supplied
// ostreams.
teestream
(
std
::
ostream
&
o1
,
std
::
ostream
&
o2
);
private:
teebuf
tbuf
;
};
algo/tests/testCluster.cpp
View file @
c8c2dedc
...
...
@@ -6,7 +6,6 @@
#include "core/read_score.h"
#include "core/read_chooser.h"
#include "core/compare-all.h"
#include "core/teestream.h"
#include "core/mkdir.h"
#include "core/labels.h"
#include <iostream>
...
...
algo/vidjil.cpp
View file @
c8c2dedc
...
...
@@ -43,7 +43,6 @@
#include "core/read_score.h"
#include "core/read_chooser.h"
#include "core/compare-all.h"
#include "core/teestream.h"
#include "core/mkdir.h"
#include "core/labels.h"
#include "core/list_utils.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment