class port_iterator

The port_iterator can be used to iterator over the values on a specific port in an input bag (ie, adevs_bag types)

Public Methods

[more] port_iterator(const port_iterator& src)
Copy constructor
[more] port_iterator(const adevs_bag<PortValue>& x, ADEVS_PORT_TYPE port)
Create an iterator for bag x that will iterate over values on the indicated port
[more]void operator++()
Advance the iterator to the next value on the port
[more]void operator++(int i)
Advance the iterator to the next value on the port
[more]void operator--()
Return the iterator to the previous value on the port
[more]void operator--(int i)
Return the iterator to the previous value on the port
[more]ADEVS_IO_TYPE operator*() const
Get the current value of the iterator (that is, the value on the port)
[more]bool end_of_input() const
Returns true if at the end of the input on the port
[more]bool start_of_input() const
Returns true if at the beginning of the input on the port
[more] ~port_iterator()
Destructor


Documentation

The port_iterator can be used to iterator over the values on a specific port in an input bag (ie, adevs_bag types)
o port_iterator(const port_iterator& src)
Copy constructor

o port_iterator(const adevs_bag<PortValue>& x, ADEVS_PORT_TYPE port)
Create an iterator for bag x that will iterate over values on the indicated port

ovoid operator++()
Advance the iterator to the next value on the port

ovoid operator++(int i)
Advance the iterator to the next value on the port

ovoid operator--()
Return the iterator to the previous value on the port

ovoid operator--(int i)
Return the iterator to the previous value on the port

oADEVS_IO_TYPE operator*() const
Get the current value of the iterator (that is, the value on the port)

obool end_of_input() const
Returns true if at the end of the input on the port

obool start_of_input() const
Returns true if at the beginning of the input on the port

o ~port_iterator()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.