summaryrefslogtreecommitdiff
path: root/static/v10/man3/pipestream.3
blob: ef6967128beae42fa972e5451caf7e6989a3b201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.  \"ident	"%W%"
.  \"Copyright (c) 1984 AT&T
.  \"All Rights Reserved
.  \"THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
.  \"The copyright notice above does not evidence any
.  \"actual or intended publication of such source code.
.TH PIPESTREAM 3I+ "C++ Stream Library" " "
.SH NAME
pipestream \- iostream specialized as circular buffer
.SH SYNOPSIS
.ft B
.ta1i 2i
.nf
#include <iostream.h>
#include <pipestream.h>

class pipestream : public iostream {
public:
		pipestream();
		pipestream(char* ptr, int len);
	pipebuf*	rdbuf();
	} ;
.fi
.ft R
.SH DESCRIPTION
\f(CWpipestream\fR 
specializes
\f(CWiostream\fR
to use a circular buffer (\f(CWpipebuf\fR).
.PP
Assume
.br
\(em \fBps\fR is a \f(CWpipestream\fR.
.br
\(em \fBptr\fR is a \f(CWchar*\fR.
.br
\(em \fBlen\fR is an \f(CWint\fR.
.br
\(em \fBpb\fR is a \f(CWpipebuf*\fR.
.PP
Constructors:
.TP
\fBpipestream()\fR
Constructs a \f(CWpipestream\fP with an empty \f(CWpipebuf\fR.
.TP
\fBpipestream(ptr,len)\fR
Constructs a \f(CWpipestream\fP with a \f(CWpipebuf\fR
that uses the \fBlen\fR bytes
at \fBptr\fR as a reserve area.
.PP
Members:
.TP
\fBpb=ps.rdbuf()\fR
Returns the associated \fBpipebuf\fR. \fBpipebuf::rdbuf\fR has
the same semantics as \fBstreambuf::rdbuf\fR, but the type of
the result is more precise.
.SH SEE ALSO
pipebuf(3C++)
ios(3C++)