#include <ListStream.h>
Inheritance diagram for util::io::ListStream< E, Tr >:

ListStream works both as an input buffer and as an output buffer. An example:
using namespace std;
using namespace util;
ListStream<> stream;
stream << "Here we have " << 3 << " different objects inserted.";
string str;
for(;;)
{
string >> str;
if (!stream) break;
cout << str << endl;
}
The example should output:
Here we have 3 different objects inserted.
Public Methods | |
| ListStream (List< E > &buffer) | |
| Create a new ListStream with the given List as an I/O buffer. | |
| ListStream (int blockSize=1024) | |
| Create a new ListStream with the given block size. | |
| virtual | ~ListStream () |
| Destroy the ListStream object. | |
| List< E > & | getList () |
| Get a reference to the list the input buffer uses as a data storage. | |
| const List< E > & | getList () const |
| Get a const reference to the list the input buffer uses as a data storage. | |
|
||||||||||
|
Create a new ListStream with the given List as an I/O buffer.
|
|
||||||||||
|
Create a new ListStream with the given block size.
|