CLAM-Development
1.4.0
|
#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 () |
![]() | |
Region () | |
virtual | ~Region () |
const long & | Pos () const |
const int & | Size () const |
const int & | Hop () const |
const int & | BeginDistance () |
void | Pos (const long &pos) |
void | Size (const int &size) |
void | Hop (const int &hop) |
void | BeginDistance (const int &dist) |
virtual void | RemoveRegion (Region &Region) |
Additional Inherited Members | |
![]() | |
typedef std::list< Region * > | ReadingRegionsList |
typedef ReadingRegionsList::iterator | ReadingRegionsIterator |
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.
|
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.
|
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.
|
virtual |
Implements CLAM::Region.
Definition at line 137 of file ReadingRegion.hxx.
|
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.