27 #ifndef CASA_HASHMAPITER_H
28 #define CASA_HASHMAPITER_H
30 #ifndef AIPS_USE_DEPRECATED
31 #error "HashMapIter.h is deprecated; use -DBUILD_DEPRECATED=ON to use it"
106 const key &
getKey()
const;
107 const val &
getVal()
const;
266 virtual const val &
getVal()
const;
276 val &
define(
const key &k,
const val &v) {
281 void remove(
const key &k) {
409 #ifndef CASACORE_NO_AUTO_TEMPLATES
410 #include <casacore/casa/Containers/HashMapIter.tcc>
411 #endif //# CASACORE_NO_AUTO_TEMPLATES
const val & defaultVal() const
This returns the default value for the map that this iterator is tracking.
Bool isValid() const
Check to see if the iterator is in a valid state.
const val & defaultVal() const
Returns the default value for the Map on which this iterator is operating if it is a valid iterator...
ConstHashMapIter< key, val > & operator=(const HashMap< key, val > &)
Assign one map iterator to a map (with reference semantics).
const key & getKey() const
Get the key or value for the current position in the Map.
const val & operator()(const key &ky) const
Allows mapping functions to be performed with the map on which this iterator operates.
const HashMap< key, val > & container() const
void toStart()
Move the iterator to the start of the Map.
void throw_hashmapiter_init_error()
Bool atEnd() const
Check to see if the iterator position is at the end or beginning of the Map.
HashMap< key, val > & container()
Returns the container on which this iterator is operating.
HashMapIter()
Default constructor creates an invalid Map iterator.
uInt ndefined() const
Returns the number of user defined mappings.
void operator++()
Advance to the next element of the Map.
HashMapIter(HashMap< key, val > &st)
This allows a MapIter to be constructed from a Map.
virtual ConstHashMapIter< key, val > & operator=(const HashMap< key, val > &other)
Assign one map iterator to a map (with reference semantics).
ConstHashMapIter< key, val > & operator=(const ConstHashMapIter< key, val > &)
Assign one map iterator to another iterator (with reference semantics).
HashMapIter(const HashMapIter< key, val > &other)
This allows a MapIter to be constructed from another MapIter.
const HashMap< key, val > & container() const
Returns the container on which this iterator is operating.
val & operator()(const key &ky)
bool Bool
Define the standard types used by Casacore.
const val & operator()(const key &ky) const
Allows mapping functions to be performed with the map on which this iterator operates.
Bool isDefined(const key &ky) const
Allows one to check to see if a given key is defined in the map which this iterator tracks...
void clear()
Clear all of the mappings.
virtual HashMapIter< key, val > & operator=(HashMap< key, val > &other)
This assignment operator allows the Map which this MapIter tracks to be changed.
virtual ~ConstHashMapIter()
dtor
void throw_invalid_hashmapiter_error()
val & getVal()
Get the key or value for the current position in the Map.
ConstHashMapIter()
Default constructor creates an invalid Map iterator.
ListIter< OrderedPair< key, val > > iter
Doubly linked non-constant list iterator The List class above only provides for the list framework...
val & define(const key &k, const val &v)
These functions allow for the definition and removal of key/value relations.
HashMap< key, val > * Container
Step through a non-const HashMap.
const val & getVal() const
Associative Array with a hash table implementation.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.