casacore
|
#include <OrderedPair.h>
Public Member Functions | |
OrderedPair () | |
Needed for "operator>>(AipsIO &ios, Slist<elem> &list)". More... | |
OrderedPair (const K &k, const V &v) | |
This is the "standard" constructor which takes a key and a value and constructs an ordered pair. More... | |
OrderedPair (const OrderedPair< K, V > &that) | |
Copy constructor (copy semantics). More... | |
OrderedPair< K, V > & | operator= (const OrderedPair< K, V > &that) |
Assignment (copy semantics). More... | |
K & | x () |
Get access to the key or value. More... | |
const K & | x () const |
V & | y () |
const V & | y () const |
Private Types | |
enum | { OrderedPairVersion } |
Private Attributes | |
K | Key |
V | Val |
Ordered pair class
Internal
This class is a simple class used in the Map<key,value> classes to manage key/value pairs for maps. The default constructor is needed for use in containers. This implies that ALL classes ever used in OrderedPair should have a default constructor!!!!
Note: This should probably be cleaned up in the future and made into a generally useful class;
Definition at line 60 of file OrderedPair.h.
|
private |
Enumerator | |
---|---|
OrderedPairVersion |
Definition at line 96 of file OrderedPair.h.
casacore::OrderedPair< K, V >::OrderedPair | ( | ) |
Needed for "operator>>(AipsIO &ios, Slist<elem> &list)".
casacore::OrderedPair< K, V >::OrderedPair | ( | const K & | k, |
const V & | v | ||
) |
This is the "standard" constructor which takes a key and a value and constructs an ordered pair.
casacore::OrderedPair< K, V >::OrderedPair | ( | const OrderedPair< K, V > & | that | ) |
Copy constructor (copy semantics).
OrderedPair<K,V>& casacore::OrderedPair< K, V >::operator= | ( | const OrderedPair< K, V > & | that | ) |
Assignment (copy semantics).
|
inline |
Get access to the key or value.
Definition at line 86 of file OrderedPair.h.
References casacore::OrderedPair< K, V >::Key.
|
inline |
Definition at line 87 of file OrderedPair.h.
References casacore::OrderedPair< K, V >::Key.
|
inline |
Definition at line 88 of file OrderedPair.h.
References casacore::OrderedPair< K, V >::Val.
|
inline |
Definition at line 89 of file OrderedPair.h.
References casacore::OrderedPair< K, V >::Val.
|
private |
Definition at line 93 of file OrderedPair.h.
Referenced by casacore::OrderedPair< K, V >::x().
|
private |
Definition at line 94 of file OrderedPair.h.
Referenced by casacore::OrderedPair< K, V >::y().