PLearn 0.1
|
#include <IntStream.h>
Public Member Functions | |
InMemoryIntStream (IntStream &stream) | |
copy stream to memory | |
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 | ~InMemoryIntStream () |
Protected Attributes | |
int * | data |
int | length |
Definition at line 162 of file IntStream.h.
PLearn::InMemoryIntStream::InMemoryIntStream | ( | IntStream & | stream | ) |
virtual PLearn::InMemoryIntStream::~InMemoryIntStream | ( | ) | [inline, virtual] |
Definition at line 188 of file IntStream.h.
{ delete[] data; }
virtual int PLearn::InMemoryIntStream::current | ( | ) | [inline, virtual] |
return next available int from the stream
Reimplemented from PLearn::IntStream.
Definition at line 185 of file IntStream.h.
virtual int PLearn::InMemoryIntStream::next | ( | ) | [inline, virtual] |
return currently available int from the stream (at currente position) and THEN increment position to NEXT item
Reimplemented from PLearn::IntStream.
Definition at line 179 of file IntStream.h.
virtual void PLearn::InMemoryIntStream::seek | ( | long | position | ) | [inline, virtual] |
move to given position
Reimplemented from PLearn::IntStream.
Definition at line 171 of file IntStream.h.
References PLERROR.
virtual long PLearn::InMemoryIntStream::size | ( | ) | [inline, virtual] |
total length of the stream
Reimplemented from PLearn::IntStream.
Definition at line 186 of file IntStream.h.
{ return length; }
int* PLearn::InMemoryIntStream::data [protected] |
Definition at line 164 of file IntStream.h.
Referenced by InMemoryIntStream().
int PLearn::InMemoryIntStream::length [protected] |
Definition at line 165 of file IntStream.h.
Referenced by InMemoryIntStream().