#include <IntStream.h>
Inheritance diagram for PLearn::IntStream:


Public Member Functions | |
| IntStream (int p=0) | |
| virtual void | seek (long position) |
| move to given position | |
| virtual int | next () |
| return currently available int from the stream (at currente position) and THEN increment position to NEXT item | |
| virtual int | current () |
| return next available int from the stream | |
| virtual long | size () |
| total length of the stream | |
| virtual int | position () |
| current position (= size if we are past the last read element) | |
| virtual long | remaining () |
| remaining int's (INCLUDING the current one), = 0 if none left to read | |
| virtual void | reopen () |
| virtual | ~IntStream () |
Protected Attributes | |
| long | pos |
|
|
Definition at line 64 of file IntStream.h. References pos. |
|
|
Definition at line 91 of file IntStream.h. |
|
|
return next available int from the stream
Reimplemented in PLearn::FilesIntStream, and PLearn::InMemoryIntStream. Definition at line 74 of file IntStream.h. |
|
|
return currently available int from the stream (at currente position) and THEN increment position to NEXT item
Reimplemented in PLearn::FilesIntStream, and PLearn::InMemoryIntStream. Definition at line 71 of file IntStream.h. Referenced by PLearn::InMemoryIntStream::InMemoryIntStream(). |
|
|
current position (= size if we are past the last read element)
Definition at line 80 of file IntStream.h. References pos. Referenced by remaining(). |
|
|
remaining int's (INCLUDING the current one), = 0 if none left to read
Definition at line 83 of file IntStream.h. References position(), and size(). |
|
|
Re-open all the file pointers and seek(position()). This is useful when a forked child process wants access to the same stream without interfering with parent Reimplemented in PLearn::FilesIntStream. Definition at line 89 of file IntStream.h. |
|
|
move to given position
Reimplemented in PLearn::FilesIntStream, and PLearn::InMemoryIntStream. Definition at line 67 of file IntStream.h. References PLERROR, and seek(). Referenced by seek(). |
|
|
total length of the stream
Reimplemented in PLearn::FilesIntStream, and PLearn::InMemoryIntStream. Definition at line 77 of file IntStream.h. Referenced by PLearn::InMemoryIntStream::InMemoryIntStream(), and remaining(). |
|
|
Definition at line 61 of file IntStream.h. Referenced by IntStream(), and position(). |
1.3.7