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

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

#include <Chunk.h>

Inheritance diagram for inet::Chunk::BackwardIterator:
inet::Chunk::Iterator

Public Member Functions

 BackwardIterator (b position)
 
 BackwardIterator (B position)
 
 BackwardIterator (b position, int index)
 
BackwardIteratoroperator= (const BackwardIterator &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 end.

Constructor & Destructor Documentation

◆ BackwardIterator() [1/3]

inet::Chunk::BackwardIterator::BackwardIterator ( b  position)
inline
329 : Iterator(false, position, -1) {}

◆ BackwardIterator() [2/3]

inet::Chunk::BackwardIterator::BackwardIterator ( B  position)
inline
330 : Iterator(false, position, -1) {}

◆ BackwardIterator() [3/3]

inet::Chunk::BackwardIterator::BackwardIterator ( b  position,
int  index 
)
inlineexplicit
331 : Iterator(false, position, index) {}

Member Function Documentation

◆ operator=()

BackwardIterator& inet::Chunk::BackwardIterator::operator= ( const BackwardIterator other)
inline
332 { 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