CLAM-Development
1.1
|
#include <ReadingRegion.hxx>
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) |
Region * | ProducerRegion () |
void | RemoveProducer () |
ReadingRegionsIterator | BeginReaders () |
ReadingRegionsIterator | EndReaders () |
Definition at line 32 of file ReadingRegion.hxx.
CLAM::ReadingRegion< WritingRegion >::ReadingRegion | ( | ) |
Definition at line 74 of file ReadingRegion.hxx.
CLAM::ReadingRegion< WritingRegion >::~ReadingRegion | ( | ) |
Definition at line 80 of file ReadingRegion.hxx.
ReadingRegion< WritingRegion >::ReadingRegionsIterator CLAM::ReadingRegion< WritingRegion >::BeginReaders | ( | ) | [virtual] |
Implements CLAM::Region.
Definition at line 150 of file ReadingRegion.hxx.
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.
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.
ReadingRegion< WritingRegion >::ReadingRegionsIterator CLAM::ReadingRegion< WritingRegion >::EndReaders | ( | ) | [virtual] |
Implements CLAM::Region.
Definition at line 156 of file ReadingRegion.hxx.
void CLAM::ReadingRegion< WritingRegion >::LinkAndNotifySizeToStream | ( | ProperStream & | stream | ) |
Definition at line 87 of file ReadingRegion.hxx.
Referenced by CLAM::WritingRegion< Token, DataStructure >::LinkRegions().
void CLAM::ReadingRegion< WritingRegion >::LinkProducerRegion | ( | Region & | writing | ) |
Definition at line 116 of file ReadingRegion.hxx.
References CLAM::Region::BeginDistance(), and CLAM::Region::Pos().
Referenced by CLAM::WritingRegion< Token, DataStructure >::LinkRegions().
ReadingRegion< WritingRegion >::ProperToken & CLAM::ReadingRegion< WritingRegion >::operator[] | ( | int | offset | ) |
Definition at line 125 of file ReadingRegion.hxx.
References CLAM_DEBUG_ASSERT.
Region * CLAM::ReadingRegion< WritingRegion >::ProducerRegion | ( | ) | [virtual] |
Implements CLAM::Region.
Definition at line 137 of file ReadingRegion.hxx.
void CLAM::ReadingRegion< WritingRegion >::RemoveProducer | ( | ) | [virtual] |
Reimplemented from CLAM::Region.
Definition at line 143 of file ReadingRegion.hxx.
ReadingRegion< WritingRegion >::ProperStream & CLAM::ReadingRegion< WritingRegion >::Stream | ( | ) |
Definition at line 94 of file ReadingRegion.hxx.