casa
$Rev:20696$
|
OrderedMap iterator "letter". More...
#include <OrderedMap.h>
Public Types | |
enum | { OrderedMapIterRepVersion } |
Public Member Functions | |
Bool | isValid () const |
Checks to see if the iterator is in a valid state. | |
Bool | atEnd () const |
Checks to see if the iterator is at one of the map extremes, "atEnd()" or "atStart()". | |
Bool | atStart () const |
void | toStart () |
Move the iterator to the beginning of the Map. | |
void | operator++ () |
Advance the iterator to the next key. | |
void | operator++ (int) |
const key & | getKey () const |
Retrieve the key at the current iterator position. | |
const key & | getKey (uInt inx) const |
value & | getVal (uInt inx) |
Retrieve the value at the given index in the internal block which stores the representation of the OrderedMap. | |
const value & | getVal () const |
Retrieve the value at the current iterator position. | |
const value & | getVal (uInt inx) const |
value & | getVal () |
Return the value at the current location of the map iterator. | |
MapIterRep< key, value > * | Clone () |
void | notify (const Notice &) |
Hook through which NoticeTarget s are notified (by NoticeSource s). | |
OrderedMapIterRep (OrderedMap< key, value > *st) | |
These constructors allow a ListMapIter to be constructed from a ListMap. | |
OrderedMapIterRep (OrderedMap< key, value > &st) | |
Protected Member Functions | |
void | thrownext () const |
void | throwInvalidIter () const |
Protected Attributes | |
OrderedMap< key, value > * | container |
uInt | CurIndex |
OrderedMap iterator "letter".
This is the "letter" which when paired (Const)MapIter "envelope" allows traversal of "OrderedMap"s.
Definition at line 298 of file OrderedMap.h.
anonymous enum |
casa::OrderedMapIterRep< key, value >::OrderedMapIterRep | ( | OrderedMap< key, value > * | st | ) | [inline] |
These constructors allow a ListMapIter to be constructed from a ListMap.
Definition at line 403 of file OrderedMap.h.
casa::OrderedMapIterRep< key, value >::OrderedMapIterRep | ( | OrderedMap< key, value > & | st | ) | [inline] |
Definition at line 410 of file OrderedMap.h.
Bool casa::OrderedMapIterRep< key, value >::atEnd | ( | ) | const [virtual] |
Checks to see if the iterator is at one of the map extremes, "atEnd()" or "atStart()".
Implements casa::MapIterRep< key, value >.
Bool casa::OrderedMapIterRep< key, value >::atStart | ( | ) | const [virtual] |
Implements casa::MapIterRep< key, value >.
MapIterRep<key,value>* casa::OrderedMapIterRep< key, value >::Clone | ( | ) | [inline, virtual] |
Implements casa::MapIterRep< key, value >.
Definition at line 384 of file OrderedMap.h.
References casa::MapIterRep< key, value >::container().
const key& casa::OrderedMapIterRep< key, value >::getKey | ( | ) | const [virtual] |
Retrieve the key at the current iterator position.
Implements casa::MapIterRep< key, value >.
const key& casa::OrderedMapIterRep< key, value >::getKey | ( | uInt | inx | ) | const [inline] |
Definition at line 348 of file OrderedMap.h.
References casa::MapIterRep< key, value >::container(), casa::OrderedMapIterRep< key, value >::isValid(), and casa::OrderedMapIterRep< key, value >::throwInvalidIter().
value& casa::OrderedMapIterRep< key, value >::getVal | ( | uInt | inx | ) | [inline] |
Retrieve the value at the given index in the internal block which stores the representation of the OrderedMap.
Note: This should typically not be used;
Definition at line 362 of file OrderedMap.h.
References casa::MapIterRep< key, value >::container(), casa::OrderedMapIterRep< key, value >::isValid(), and casa::OrderedMapIterRep< key, value >::throwInvalidIter().
const value& casa::OrderedMapIterRep< key, value >::getVal | ( | ) | const [virtual] |
Retrieve the value at the current iterator position.
Implements casa::MapIterRep< key, value >.
const value& casa::OrderedMapIterRep< key, value >::getVal | ( | uInt | inx | ) | const [inline] |
Definition at line 374 of file OrderedMap.h.
References casa::MapIterRep< key, value >::container(), casa::OrderedMapIterRep< key, value >::isValid(), and casa::OrderedMapIterRep< key, value >::throwInvalidIter().
value& casa::OrderedMapIterRep< key, value >::getVal | ( | ) | [inline, virtual] |
Return the value at the current location of the map iterator.
Should throw an exception if the iterator is "past the end of the Map" or if the iterator is invalid.
Implements casa::MapIterRep< key, value >.
Definition at line 380 of file OrderedMap.h.
References casa::OrderedMapIterRep< key, value >::CurIndex, and casa::OrderedMapIterRep< key, value >::getVal().
Referenced by casa::OrderedMapIterRep< key, value >::getVal().
Bool casa::OrderedMapIterRep< key, value >::isValid | ( | ) | const [virtual] |
Checks to see if the iterator is in a valid state.
Implements casa::MapIterRep< key, value >.
Referenced by casa::OrderedMapIterRep< key, value >::getKey(), and casa::OrderedMapIterRep< key, value >::getVal().
void casa::OrderedMapIterRep< key, value >::notify | ( | const Notice & | ) | [virtual] |
Hook through which NoticeTarget
s are notified (by NoticeSource
s).
Implements casa::NoticeTarget.
void casa::OrderedMapIterRep< key, value >::operator++ | ( | ) | [virtual] |
Advance the iterator to the next key.
Implements casa::MapIterRep< key, value >.
void casa::OrderedMapIterRep< key, value >::operator++ | ( | int | ) | [virtual] |
Implements casa::MapIterRep< key, value >.
void casa::OrderedMapIterRep< key, value >::throwInvalidIter | ( | ) | const [protected] |
void casa::OrderedMapIterRep< key, value >::thrownext | ( | ) | const [protected] |
void casa::OrderedMapIterRep< key, value >::toStart | ( | ) | [virtual] |
Move the iterator to the beginning of the Map.
Implements casa::MapIterRep< key, value >.
OrderedMap<key,value>* casa::OrderedMapIterRep< key, value >::container [protected] |
uInt casa::OrderedMapIterRep< key, value >::CurIndex [protected] |
Definition at line 312 of file OrderedMap.h.
Referenced by casa::OrderedMapIterRep< key, value >::getVal().