Lolly 1.4.28
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
buffered_ostream_rep Class Reference
Inheritance diagram for buffered_ostream_rep:
Inheritance graph
[legend]
Collaboration diagram for buffered_ostream_rep:
Collaboration graph
[legend]

Public Member Functions

 buffered_ostream_rep (tm_ostream_rep *master)
 
 ~buffered_ostream_rep ()
 
bool is_writable () const
 
void write (const char *)
 
- Public Member Functions inherited from tm_ostream_rep
 tm_ostream_rep ()
 
virtual ~tm_ostream_rep ()
 
virtual void flush ()
 
virtual void clear ()
 

Public Attributes

tm_ostream_repmaster
 
string buf
 
- Public Attributes inherited from tm_ostream_rep
int ref_count
 

Detailed Description

Definition at line 117 of file tm_ostream.cpp.

Constructor & Destructor Documentation

◆ buffered_ostream_rep()

buffered_ostream_rep::buffered_ostream_rep ( tm_ostream_rep * master)

Definition at line 130 of file tm_ostream.cpp.

131 : master (master2) {}
tm_ostream_rep * master
The list class represents a linked list.
Definition list.hpp:48

◆ ~buffered_ostream_rep()

buffered_ostream_rep::~buffered_ostream_rep ( )

Definition at line 133 of file tm_ostream.cpp.

133{ DEC_COUNT (master); }
#define DEC_COUNT(R)
Macro used to decrement the reference count for a structure object and delete it if the count reaches...
Definition classdef.hpp:84

Member Function Documentation

◆ is_writable()

bool buffered_ostream_rep::is_writable ( ) const
virtual

Reimplemented from tm_ostream_rep.

Definition at line 136 of file tm_ostream.cpp.

136 {
137 return true;
138}

◆ write()

void buffered_ostream_rep::write ( const char * s)
virtual

Reimplemented from tm_ostream_rep.

Definition at line 141 of file tm_ostream.cpp.

141 {
142 buf << s;
143}

Member Data Documentation

◆ master

tm_ostream_rep* buffered_ostream_rep::master

Definition at line 119 of file tm_ostream.cpp.

◆ buf

string buffered_ostream_rep::buf

Definition at line 120 of file tm_ostream.cpp.


The documentation for this class was generated from the following file: