INET Framework for OMNeT++/OMNEST
inet::Chunk::ForwardIterator Class Reference

Position and index are measured from the beginning. More...

#include <Chunk.h>

Inheritance diagram for inet::Chunk::ForwardIterator:
inet::Chunk::Iterator

Public Member Functions

 ForwardIterator (b position)
 
 ForwardIterator (B position)
 
 ForwardIterator (b position, int index)
 
ForwardIteratoroperator= (const ForwardIterator &other)
 
- Public Member Functions inherited from inet::Chunk::Iterator
 Iterator (b position)
 
 Iterator (B position)
 
 Iterator (bool isForward, b position, int index)
 
 Iterator (const Iterator &other)
 
bool isCorrect ()
 
bool isForward () const
 
bool isBackward () const
 
b getPosition () const
 
void setPosition (b position)
 
int getIndex () const
 
void setIndex (int index)
 

Additional Inherited Members

- Protected Attributes inherited from inet::Chunk::Iterator
const bool isForward_
 
b position
 
int index
 

Detailed Description

Position and index are measured from the beginning.

Constructor & Destructor Documentation

◆ ForwardIterator() [1/3]

inet::Chunk::ForwardIterator::ForwardIterator ( b  position)
inline
318 : Iterator(true, position, -1) {}

◆ ForwardIterator() [2/3]

inet::Chunk::ForwardIterator::ForwardIterator ( B  position)
inline
319 : Iterator(true, position, -1) {}

◆ ForwardIterator() [3/3]

inet::Chunk::ForwardIterator::ForwardIterator ( b  position,
int  index 
)
inlineexplicit
320 : Iterator(true, position, index) {}

Member Function Documentation

◆ operator=()

ForwardIterator& inet::Chunk::ForwardIterator::operator= ( const ForwardIterator other)
inline
321 { position = other.position; index = other.index; CHUNK_CHECK_IMPLEMENTATION(isCorrect()); return *this; }

The documentation for this class was generated from the following file:
CHUNK_CHECK_IMPLEMENTATION
#define CHUNK_CHECK_IMPLEMENTATION(condition)
Definition: Chunk.h:29
inet::Chunk::Iterator::position
b position
Definition: Chunk.h:292
inet::Chunk::Iterator::index
int index
Definition: Chunk.h:293
inet::Chunk::Iterator::Iterator
Iterator(b position)
Definition: Chunk.h:296
inet::Chunk::Iterator::isCorrect
bool isCorrect()
Definition: Chunk.h:301