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
-
port_iterator(const port_iterator& src)
- Copy constructor
-
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
-
void operator++()
- Advance the iterator to the next value on the port
-
void operator++(int i)
- Advance the iterator to the next value on the port
-
void operator--()
- Return the iterator to the previous value on the port
-
void operator--(int i)
- Return the iterator to the previous value on the port
-
ADEVS_IO_TYPE operator*() const
- Get the current value of the iterator (that is, the value on the port)
-
bool end_of_input() const
- Returns true if at the end of the input on the port
-
bool start_of_input() const
- Returns true if at the beginning of the input on the port
-
~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)
- port_iterator(const port_iterator& src)
- Copy constructor
- 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
- void operator++()
- Advance the iterator to the next value on the port
- void operator++(int i)
- Advance the iterator to the next value on the port
- void operator--()
- Return the iterator to the previous value on the port
- void operator--(int i)
- Return the iterator to the previous value on the port
- ADEVS_IO_TYPE operator*() const
- Get the current value of the iterator (that is, the value on the port)
- bool end_of_input() const
- Returns true if at the end of the input on the port
- bool start_of_input() const
- Returns true if at the beginning of the input on the port
- ~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++.