Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::InMemoryIntStream Class Reference

#include <IntStream.h>

Inheritance diagram for PLearn::InMemoryIntStream:

Inheritance graph
[legend]
Collaboration diagram for PLearn::InMemoryIntStream:

Collaboration graph
[legend]
List of all members.

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

intdata
int length

Constructor & Destructor Documentation

PLearn::InMemoryIntStream::InMemoryIntStream IntStream stream  ) 
 

copy stream to memory

Definition at line 267 of file IntStream.cc.

References data, length, PLearn::IntStream::next(), and PLearn::IntStream::size().

virtual PLearn::InMemoryIntStream::~InMemoryIntStream  )  [inline, virtual]
 

Definition at line 188 of file IntStream.h.

References data.


Member Function Documentation

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.

References data.

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.

References data, and length.

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 length, PLERROR, and seek().

Referenced by seek().

virtual long PLearn::InMemoryIntStream::size  )  [inline, virtual]
 

total length of the stream

Reimplemented from PLearn::IntStream.

Definition at line 186 of file IntStream.h.

References length.


Member Data Documentation

int* PLearn::InMemoryIntStream::data [protected]
 

Definition at line 164 of file IntStream.h.

Referenced by current(), InMemoryIntStream(), next(), and ~InMemoryIntStream().

int PLearn::InMemoryIntStream::length [protected]
 

Definition at line 165 of file IntStream.h.

Referenced by InMemoryIntStream(), next(), seek(), and size().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:10 2004 for PLearn by doxygen 1.3.7