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