CLAM-Development  1.1
Public Member Functions
CLAM::ReadingRegion< WritingRegion > Class Template Reference

#include <ReadingRegion.hxx>

List of all members.

Public Member Functions

 ReadingRegion ()
 ~ReadingRegion ()
void LinkAndNotifySizeToStream (ProperStream &stream)
ProperStream & Stream ()
bool CanConsume ()
 Condition of overlap between reading and writing regions.
void Consume ()
 This method must be called when the data of the reading-region has been already readen (consumed) and we want to advance the region position for further readings (consumes)
void LinkProducerRegion (Region &writing)
ProperToken & operator[] (int offset)
RegionProducerRegion ()
void RemoveProducer ()
ReadingRegionsIterator BeginReaders ()
ReadingRegionsIterator EndReaders ()

Detailed Description

template<class WritingRegion>
class CLAM::ReadingRegion< WritingRegion >

Definition at line 32 of file ReadingRegion.hxx.


Constructor & Destructor Documentation

template<class WritingRegion >
CLAM::ReadingRegion< WritingRegion >::ReadingRegion ( )

Definition at line 74 of file ReadingRegion.hxx.

template<class WritingRegion >
CLAM::ReadingRegion< WritingRegion >::~ReadingRegion ( )

Definition at line 80 of file ReadingRegion.hxx.


Member Function Documentation

Implements CLAM::Region.

Definition at line 150 of file ReadingRegion.hxx.

template<class WritingRegion >
bool CLAM::ReadingRegion< WritingRegion >::CanConsume ( )

Condition of overlap between reading and writing regions.

Returns true if are not overlapping so it can consume

Definition at line 100 of file ReadingRegion.hxx.

template<class WritingRegion >
void CLAM::ReadingRegion< WritingRegion >::Consume ( )

This method must be called when the data of the reading-region has been already readen (consumed) and we want to advance the region position for further readings (consumes)

Definition at line 108 of file ReadingRegion.hxx.

References CLAM_DEBUG_ASSERT.

template<class WritingRegion >
ReadingRegion< WritingRegion >::ReadingRegionsIterator CLAM::ReadingRegion< WritingRegion >::EndReaders ( ) [virtual]

Implements CLAM::Region.

Definition at line 156 of file ReadingRegion.hxx.

template<class WritingRegion >
void CLAM::ReadingRegion< WritingRegion >::LinkAndNotifySizeToStream ( ProperStream &  stream)
template<class WritingRegion >
void CLAM::ReadingRegion< WritingRegion >::LinkProducerRegion ( Region writing)
template<class WritingRegion >
ReadingRegion< WritingRegion >::ProperToken & CLAM::ReadingRegion< WritingRegion >::operator[] ( int  offset)

Definition at line 125 of file ReadingRegion.hxx.

References CLAM_DEBUG_ASSERT.

template<class WritingRegion >
Region * CLAM::ReadingRegion< WritingRegion >::ProducerRegion ( ) [virtual]

Implements CLAM::Region.

Definition at line 137 of file ReadingRegion.hxx.

template<class WritingRegion >
void CLAM::ReadingRegion< WritingRegion >::RemoveProducer ( ) [virtual]

Reimplemented from CLAM::Region.

Definition at line 143 of file ReadingRegion.hxx.

template<class WritingRegion >
ReadingRegion< WritingRegion >::ProperStream & CLAM::ReadingRegion< WritingRegion >::Stream ( )

Definition at line 94 of file ReadingRegion.hxx.


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