Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEUndoList::Iterator Class Reference

FOX declaration. More...

#include <GNEUndoList.h>

Inheritance diagram for GNEUndoList::Iterator:
[legend]
Collaboration diagram for GNEUndoList::Iterator:
[legend]

Public Member Functions

bool end () const
 check if iterator is at the end
const std::string getDescription () const
 get description
FXIcon * getIcon () const
 get icon
int getIndex () const
 get index
const std::string getTimeStamp () const
 get timeStamp
Iterator & operator++ (int)
 increment operator
 ~Iterator ()
 destructor

Protected Member Functions

 Iterator (GNEChange *change)
 constructor for GNEUndoList

Private Member Functions

 Iterator ()
 default constructor

Private Attributes

GNEChange * myCurrentChange
 current change
int myIndex
 counter

Detailed Description

FOX declaration.

iterator

Definition at line 48 of file GNEUndoList.h.

Constructor & Destructor Documentation

◆ ~Iterator()

GNEUndoList::Iterator::~Iterator ( )

destructor

Definition at line 57 of file GNEUndoList.cpp.

References GNEUndoList::GNEUndoList(), and Iterator().

◆ Iterator() [1/2]

GNEUndoList::Iterator::Iterator ( GNEChange * change)
protected

constructor for GNEUndoList

Definition at line 106 of file GNEUndoList.cpp.

References GNEChange::GNEChange(), myCurrentChange, and myIndex.

Referenced by GNEUndoList::RedoIterator::RedoIterator(), GNEUndoList::UndoIterator::UndoIterator(), and ~Iterator().

Here is the caller graph for this function:

◆ Iterator() [2/2]

GNEUndoList::Iterator::Iterator ( )
private

default constructor

Definition at line 112 of file GNEUndoList.cpp.

References myCurrentChange, and myIndex.

Member Function Documentation

◆ end()

bool GNEUndoList::Iterator::end ( ) const

check if iterator is at the end

Definition at line 61 of file GNEUndoList.cpp.

References myCurrentChange.

Referenced by GNEUndoListDialog::GNEUndoListDialog(), and GNEUndoListDialog::updateList().

Here is the caller graph for this function:

◆ getDescription()

const std::string GNEUndoList::Iterator::getDescription ( ) const

get description

Definition at line 73 of file GNEUndoList.cpp.

References myCurrentChange, and GNEUndoList::redoName().

Referenced by GNEUndoListDialog::updateList().

Here is the caller graph for this function:

◆ getIcon()

FXIcon * GNEUndoList::Iterator::getIcon ( ) const

get icon

Definition at line 86 of file GNEUndoList.cpp.

References GNEChangeGroup::getGroupIcon(), GUIIconSubSys::getIcon(), GNEChangeGroup::GNEChangeGroup(), and myCurrentChange.

Referenced by GNEUndoListDialog::updateList().

Here is the caller graph for this function:

◆ getIndex()

int GNEUndoList::Iterator::getIndex ( ) const

get index

Definition at line 67 of file GNEUndoList.cpp.

References myIndex.

◆ getTimeStamp()

const std::string GNEUndoList::Iterator::getTimeStamp ( ) const

get timeStamp

Definition at line 80 of file GNEUndoList.cpp.

References GNEChangeGroup::getTimeStamp(), GNEChangeGroup::GNEChangeGroup(), and myCurrentChange.

Referenced by GNEUndoListDialog::updateList().

Here is the caller graph for this function:

◆ operator++()

GNEUndoList::Iterator & GNEUndoList::Iterator::operator++ ( int )

increment operator

Definition at line 97 of file GNEUndoList.cpp.

References myCurrentChange, and myIndex.

Field Documentation

◆ myCurrentChange

GNEChange* GNEUndoList::Iterator::myCurrentChange
private

current change

Definition at line 81 of file GNEUndoList.h.

Referenced by end(), getDescription(), getIcon(), getTimeStamp(), Iterator(), Iterator(), and operator++().

◆ myIndex

int GNEUndoList::Iterator::myIndex
private

counter

Definition at line 84 of file GNEUndoList.h.

Referenced by getIndex(), Iterator(), Iterator(), and operator++().


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