DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Private Attributes | List of all members
Diades::Automata::_ComponentIterator Class Reference

#include <SynchronisationRules.hh>

Public Types

typedef vector< const Component * > ComponentVector
 
typedef vector< EventEventVector
 

Public Member Functions

 _ComponentIterator (const ComponentVector *pVect, const EventVector *pEvent, ComponentVector::size_type index)
 
 _ComponentIterator (const _ComponentIterator &it)
 
const Componentoperator* () const
 
const Componentoperator-> () const
 
_ComponentIteratoroperator++ ()
 
_ComponentIterator operator++ (int)
 
bool operator== (const _ComponentIterator &compIt) const
 
bool operator!= (const _ComponentIterator &compIt) const
 
Event getAssociatedEvent () const
 
ComponentVector::size_type index () const
 

Private Attributes

const ComponentVector_pVect
 
const EventVector_pEvent
 
ComponentVector::size_type _index
 

Detailed Description

Definition at line 20 of file SynchronisationRules.hh.

Member Typedef Documentation

◆ ComponentVector

Definition at line 22 of file SynchronisationRules.hh.

◆ EventVector

Definition at line 23 of file SynchronisationRules.hh.

Constructor & Destructor Documentation

◆ _ComponentIterator() [1/2]

Diades::Automata::_ComponentIterator::_ComponentIterator ( const ComponentVector pVect,
const EventVector pEvent,
ComponentVector::size_type  index 
)
inline

Parametrized Constructor

Parameters
pVectthe vector of component
pEventthe vector of events
indexthe current index for this iterator

Definition at line 38 of file SynchronisationRules.hh.

◆ _ComponentIterator() [2/2]

Diades::Automata::_ComponentIterator::_ComponentIterator ( const _ComponentIterator it)
inline

Copy constructor

Definition at line 45 of file SynchronisationRules.hh.

Member Function Documentation

◆ getAssociatedEvent()

Event Diades::Automata::_ComponentIterator::getAssociatedEvent ( ) const
inline
Returns
the event associated to the component referenced by the iterator

Definition at line 97 of file SynchronisationRules.hh.

References _index.

Referenced by Diades::Automata::SynchronisationEvent::getAssociatedEvent().

◆ index()

ComponentVector::size_type Diades::Automata::_ComponentIterator::index ( ) const
inline
Returns
the current index implementing the iterator

Definition at line 104 of file SynchronisationRules.hh.

References _index.

Referenced by Diades::Automata::SynchronisationRules::getComponent().

◆ operator!=()

bool Diades::Automata::_ComponentIterator::operator!= ( const _ComponentIterator compIt) const
inline

difference operator

Definition at line 90 of file SynchronisationRules.hh.

◆ operator*()

const Component& Diades::Automata::_ComponentIterator::operator* ( ) const
inline

reference operator

Definition at line 51 of file SynchronisationRules.hh.

References _index.

◆ operator++() [1/2]

_ComponentIterator& Diades::Automata::_ComponentIterator::operator++ ( )
inline

prefix increment

Definition at line 65 of file SynchronisationRules.hh.

References _index.

◆ operator++() [2/2]

_ComponentIterator Diades::Automata::_ComponentIterator::operator++ ( int  )
inline

postfix increment

Definition at line 73 of file SynchronisationRules.hh.

References _index.

◆ operator->()

const Component* Diades::Automata::_ComponentIterator::operator-> ( ) const
inline

pointer operator

Definition at line 58 of file SynchronisationRules.hh.

◆ operator==()

bool Diades::Automata::_ComponentIterator::operator== ( const _ComponentIterator compIt) const
inline

equality operator

Definition at line 82 of file SynchronisationRules.hh.

References _index, _pEvent, and _pVect.

Referenced by Diades::Automata::SynchronisationEvent::getAssociatedEvent().

Member Data Documentation

◆ _index

ComponentVector::size_type Diades::Automata::_ComponentIterator::_index
private

Definition at line 28 of file SynchronisationRules.hh.

Referenced by getAssociatedEvent(), index(), operator*(), operator++(), and operator==().

◆ _pEvent

const EventVector* Diades::Automata::_ComponentIterator::_pEvent
private

Definition at line 27 of file SynchronisationRules.hh.

Referenced by operator==().

◆ _pVect

const ComponentVector* Diades::Automata::_ComponentIterator::_pVect
private

Definition at line 26 of file SynchronisationRules.hh.

Referenced by operator==().


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