array_iterator Class Reference
Declared in |
|
using array_iterator = ...; |
using const_array_iterator = ...; |
array_iterator satisfies the BidirectionalIterator C++ concept. It is a generic iterator that can be used to iterate other any specialization of template class Array.
All specializations of template class Array inherit from ArrayBase which has the methods gbegin, gcbegin, gend, gcend which return iterators of type array_iterator or const_array_iterator.
Member Types
|
|
|
|
|
|
|
|
Member Functions Synopsys
Miscellaneous
Returns the key associated to the iterator. | |
Returns | |
Returns | |
Returns |
Member Functions
key
const KeyFloat & key () const; |
Returns the key associated to the iterator.
The key is guaranteed unique in the container and is used to sort elements in the container.
added
bool added () const; |
Returns true iff the iterator was added to the container.
Note: When an object is moved in the container, then the destination iterator is considered as added while the object is considered as resident. See Array::iterator for an example of it.
removed
bool removed () const; |
Returns true iff the iterator was removed to the container.
Note: When an object is moved in the container, then the source iterator is considered as removed while the object is considered as resident. See Array::iterator for an example of it.
resident
bool resident () const; |
Returns true iff the iterator was neither added or removed.