casacore
|
OrderedMap iterator "letter". More...
#include <OrderedMap.h>
Public Types | |
enum | { OrderedMapIterRepVersion } |
Public Types inherited from casacore::MapIterRep< key, value > | |
enum | { MapIterRepVersion } |
Public Member Functions | |
Bool | isValid () const |
Checks to see if the iterator is in a valid state. More... | |
Bool | atEnd () const |
Checks to see if the iterator is at one of the map extremes, "atEnd()" or "atStart()". More... | |
Bool | atStart () const |
void | toStart () |
Move the iterator to the beginning of the Map. More... | |
void | operator++ () |
Advance the iterator to the next key. More... | |
void | operator++ (int) |
const key & | getKey () const |
Retrieve the key at the current iterator position. More... | |
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. More... | |
const value & | getVal () const |
Retrieve the value at the current iterator position. More... | |
const value & | getVal (uInt inx) const |
value & | getVal () |
Return the value at the current location of the map iterator. More... | |
MapIterRep< key, value > * | Clone () |
Duplicate a map iterator. More... | |
void | notify (const Notice &) |
Hook through which NoticeTarget s are notified (by NoticeSource s). More... | |
OrderedMapIterRep (OrderedMap< key, value > *st) | |
These constructors allow a ListMapIter to be constructed from a ListMap. More... | |
OrderedMapIterRep (OrderedMap< key, value > &st) | |
Public Member Functions inherited from casacore::MapIterRep< key, value > | |
const value & | defaultVal () const |
This returns the default value for the map that this iterator is tracking. More... | |
value & | defaultVal () |
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) |
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) |
uInt | ndefined () const |
Returns the number of user defined mappings. More... | |
Map< key, value > & | container () |
Returns the container on which this iterator is operating. More... | |
const Map< key, value > & | container () const |
MapIterRep (Map< key, value > &st) | |
This allows a MapIter to be constructed from a Map. More... | |
MapIterRep (Map< key, value > *st) | |
virtual | ~MapIterRep () |
Public Member Functions inherited from casacore::NoticeTarget | |
virtual | ~NoticeTarget () |
Destructs this NoticeTarget . More... | |
Bool | isValid () const |
Returns a boolean value telling whether this NoticeTarget is still "valid". More... | |
Bool | isAttached () const |
Returns a boolean value telling whether this NoticeTarget is still attached to a NoticeSource or not. More... | |
void | invalidate () |
Makes the current NoticeTarget "invalid". More... | |
Protected Member Functions | |
void | thrownext () const |
void | throwInvalidIter () const |
Protected Member Functions inherited from casacore::NoticeTarget | |
NoticeTarget () | |
Creates an unlinked, "invalid" NoticeTarget . More... | |
NoticeTarget (NoticeSource *v) | |
Creates a "valid" NoticeTarget linked to the specified NoticeSource . More... | |
NoticeTarget (NoticeSource &v) | |
NoticeTarget (NoticeTarget &other) | |
Creates a "valid" NoticeTarget linked to the same NoticeSource as the other NoticeTarget . More... | |
NoticeTarget (NoticeTarget *other) | |
void | unlink () |
Unlinks this NoticeTarget from its NoticeSource . More... | |
void | link (const NoticeTarget &other) |
Links this NoticeTarget to the same NoticeSource as the other NoticeTarget . More... | |
void | link (const NoticeTarget *other) |
Link< NoticeTarget * > * | next () |
Retrieves the next NoticeTarget in the target list of the associated NoticeSource . More... | |
const Link< NoticeTarget * > * | next () const |
void | attach (NoticeSource *v) |
Adds this NoticeTarget to the target list in the specified NoticeSource , so that it will receive all notices sent out by that NoticeSource . More... | |
void | attach (NoticeSource &v) |
Protected Attributes | |
OrderedMap< key, value > * | container |
uInt | CurIndex |
Protected Attributes inherited from casacore::MapIterRep< key, value > | |
Map< key, value > * | Container |
Protected Attributes inherited from casacore::NoticeTarget | |
Link< NoticeTarget * > * | ilink |
NoticeSource * | container |
Bool | valid |
OrderedMap iterator "letter".
This is the "letter" which when paired (Const)MapIter "envelope" allows traversal of "OrderedMap"s.
Definition at line 302 of file OrderedMap.h.
anonymous enum |
Enumerator | |
---|---|
OrderedMapIterRepVersion |
Definition at line 422 of file OrderedMap.h.
|
inline |
These constructors allow a ListMapIter to be constructed from a ListMap.
Definition at line 407 of file OrderedMap.h.
|
inline |
Definition at line 414 of file OrderedMap.h.
|
virtual |
Checks to see if the iterator is at one of the map extremes, "atEnd()" or "atStart()".
Implements casacore::MapIterRep< key, value >.
|
virtual |
Implements casacore::MapIterRep< key, value >.
|
inlinevirtual |
Duplicate a map iterator.
Implements casacore::MapIterRep< key, value >.
Definition at line 388 of file OrderedMap.h.
References casacore::OrderedMapIterRep< key, value >::container.
|
virtual |
Retrieve the key at the current iterator position.
Implements casacore::MapIterRep< key, value >.
|
inline |
Definition at line 352 of file OrderedMap.h.
References casacore::OrderedMapIterRep< key, value >::container, casacore::OrderedMapIterRep< key, value >::isValid(), and casacore::OrderedMapIterRep< key, value >::throwInvalidIter().
|
inlinevirtual |
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 casacore::MapIterRep< key, value >.
Definition at line 384 of file OrderedMap.h.
References casacore::OrderedMapIterRep< key, value >::CurIndex, and casacore::OrderedMapIterRep< key, value >::getVal().
Referenced by casacore::OrderedMapIterRep< key, value >::getVal().
|
virtual |
Retrieve the value at the current iterator position.
Implements casacore::MapIterRep< key, value >.
|
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 366 of file OrderedMap.h.
References casacore::OrderedMapIterRep< key, value >::container, casacore::OrderedMapIterRep< key, value >::isValid(), and casacore::OrderedMapIterRep< key, value >::throwInvalidIter().
|
inline |
Definition at line 378 of file OrderedMap.h.
References casacore::OrderedMapIterRep< key, value >::container, casacore::OrderedMapIterRep< key, value >::isValid(), and casacore::OrderedMapIterRep< key, value >::throwInvalidIter().
|
virtual |
Checks to see if the iterator is in a valid state.
Implements casacore::MapIterRep< key, value >.
Referenced by casacore::OrderedMapIterRep< key, value >::getKey(), and casacore::OrderedMapIterRep< key, value >::getVal().
|
virtual |
Hook through which NoticeTarget
s are notified (by NoticeSource
s).
Implements casacore::NoticeTarget.
|
virtual |
Advance the iterator to the next key.
Implements casacore::MapIterRep< key, value >.
|
virtual |
Implements casacore::MapIterRep< key, value >.
|
protected |
|
protected |
|
virtual |
Move the iterator to the beginning of the Map.
Implements casacore::MapIterRep< key, value >.
|
protected |
Definition at line 314 of file OrderedMap.h.
Referenced by casacore::OrderedMapIterRep< key, value >::Clone(), casacore::OrderedMapIterRep< key, value >::getKey(), and casacore::OrderedMapIterRep< key, value >::getVal().
|
protected |
Definition at line 316 of file OrderedMap.h.
Referenced by casacore::OrderedMapIterRep< key, value >::getVal().