|
virtual value & | getVal () |
| Return the value at the current location of the map iterator. More...
|
|
virtual const value & | getVal () const |
|
value & | define (const key &ky, const value &val) |
| These functions allow for the definition and removal of key/value relations. More...
|
|
void | remove (const key &ky) |
|
const value & | defaultVal () const |
| This returns the default value for the map that this iterator is tracking. More...
|
|
value & | defaultVal () |
|
void | clear () |
| Clear all of the mappings. More...
|
|
const value & | operator() (const key &ky) const |
| Allows mapping functions to be performed with the map on which this iterator operates. More...
|
|
value & | operator() (const key &ky) |
|
const value * | isDefined (const key &ky) const |
| Allows one to check to see if a given key is defined in the map which this iterator tracks. More...
|
|
value * | isDefined (const key &ky) |
|
| MapIter (Map< key, value > *other) |
| This allows a MapIter to be constructed from a Map. More...
|
|
| MapIter (Map< key, value > &st) |
|
| MapIter (const MapIter< key, value > &other) |
| This allows a MapIter to be constructed from another MapIter. More...
|
|
| MapIter (const MapIter< key, value > *other) |
|
| MapIter () |
| Default constructor creates an invalid Map iterator. More...
|
|
virtual MapIter< key, value > & | operator= (Map< key, value > &other) |
| This assignment operator allows the Map which this MapIter tracks to be changed. More...
|
|
virtual MapIter< key, value > & | operator= (Map< key, value > *other) |
|
virtual MapIter< key, value > & | operator= (const MapIter< key, value > &other) |
| This assignment operator allows the Map which this MapIter tracks to be changed. More...
|
|
virtual MapIter< key, value > & | operator= (const MapIter< key, value > *other) |
|
Map< key, value > & | container () |
| Returns the container on which this iterator is operating. More...
|
|
const Map< key, value > & | container () const |
|
| ~MapIter () |
|
virtual void | toStart () |
| Move the iterator to the start of the Map. More...
|
|
virtual void | operator++ () |
| Advance to the next element of the Map. More...
|
|
virtual void | operator++ (int) |
|
virtual const key & | getKey () const |
| Get the key or value for the current position in the Map. More...
|
|
virtual Bool | atEnd () const |
| Check to see if the iterator position is at the end or beginning of the Map. More...
|
|
virtual Bool | atStart () const |
|
virtual Bool | isValid () const |
| Check to see if the iterator is in a valid state. More...
|
|
| ConstMapIter (const Map< key, value > *st) |
| Constructs a Map iterator from a Map (with reference semantics). More...
|
|
| ConstMapIter (const Map< key, value > &st) |
|
| ConstMapIter (const ConstMapIter< key, value > *st) |
| Constructs a Map iterator from another iterator (with reference semantics). More...
|
|
| ConstMapIter (const ConstMapIter< key, value > &st) |
|
| ConstMapIter () |
| Default constructor creates an invalid Map iterator. More...
|
|
const value & | defaultVal () const |
| Returns the default value for the Map on which this iterator is operating if it is a valid iterator, otherwise it throws an exception. More...
|
|
const value & | operator() (const key &ky) const |
| Allows mapping functions to be performed with the map on which this iterator operates. More...
|
|
const value * | isDefined (const key &ky) const |
| Allows one to check to see if a given key is defined in the map which this iterator tracks. More...
|
|
uInt | ndefined () const |
| Returns the number of user defined mappings. More...
|
|
const Map< key, value > & | container () const |
| Returns the container on which this iterator is operating. More...
|
|
virtual | ~ConstMapIter () |
|
|
ConstMapIter< key, value > & | operator= (const Map< key, value > &) |
| Assign one map iterator to a map (with reference semantics). More...
|
|
ConstMapIter< key, value > & | operator= (const Map< key, value > *) |
|
ConstMapIter< key, value > & | operator= (const ConstMapIter< key, value > &) |
| Assign one map iterator to another iterator (with reference semantics). More...
|
|
ConstMapIter< key, value > & | operator= (const ConstMapIter< key, value > *) |
|
| ConstMapIter (MapIterRep< key, value > *st) |
| Dummy used to initialization by derived classes. More...
|
|
void | SetRep (MapIterRep< key, value > *st) |
| Always DELETES Rep if necessary. More...
|
|
template<class key, class value>
class casacore::MapIter< key, value >
Associative array iterator.
Review Status
- Reviewed By:
- UNKNOWN
- Date Reviewed:
- before2004/08/25
This class implements the mechanism for traversing associative arrays, i.e. "Map"s. It provides the traversal mechanisms of the ConstMapIter, but adds the mechansims to modify the values, and perform other modification functions which the Maps provide, e.g. define().
Definition at line 589 of file Map.h.
template<class key , class value >
Allows one to check to see if a given key is defined in the map which this iterator tracks.
If this iterator is invalid, then an exception will be thrown. With a non-const iterator the returned pointer can be used to change the value in the map.
Definition at line 674 of file Map.h.
References casacore::ConstMapIter< key, value >::isDefined().