|
Jpp test-rotations-new
the software that should make you happy
|
Multidimensional pair. More...
#include <JMultiPair.hh>
Public Types | |
| typedef JKey_t | key_type |
| typedef JValue_t | value_type |
| typedef JMultiPair< N-1, key_type, value_type > | mapped_type |
| typedef JLANG::JClass< value_type >::reference_type | reference_type |
| typedef JMultiKey< N, key_type > | multikey_type |
Public Member Functions | |
| JMultiPair () | |
| Default constructor. | |
| JMultiPair (typename JClass< key_type > ::argument_type __first, typename JClass< mapped_type >::argument_type __second) | |
| Constructor. | |
| JMultiPair (typename JClass< mapped_type >::argument_type __first, typename JClass< key_type > ::argument_type __second) | |
| Constructor. | |
| JMultiPair (typename JClass< multikey_type >::argument_type key, typename JClass< value_type > ::argument_type value) | |
| Constructor. | |
| multikey_type | getKey () const |
| Get multidimensional key. | |
| reference_type | getValue () |
| Get value. | |
| const reference_type | getValue () const |
| Get value. | |
Public Attributes | |
| key_type | first |
| mapped_type | second |
Multidimensional pair.
This class reproduces the element of a multidimensional map. The individual data members can be accessed as:
JMultiPair<3, key_type, mapped_type> pair;
pair[[.second].second].first;
pair[[.second].second].second;
Definition at line 30 of file JMultiPair.hh.
| JKey_t JTOOLS::JMultiPair< N, JKey_t, JValue_t >::key_type |
Definition at line 34 of file JMultiPair.hh.
| JValue_t JTOOLS::JMultiPair< N, JKey_t, JValue_t >::value_type |
Definition at line 35 of file JMultiPair.hh.
| JMultiPair<N-1, key_type, value_type> JTOOLS::JMultiPair< N, JKey_t, JValue_t >::mapped_type |
Definition at line 36 of file JMultiPair.hh.
| JLANG::JClass<value_type>::reference_type JTOOLS::JMultiPair< N, JKey_t, JValue_t >::reference_type |
Definition at line 37 of file JMultiPair.hh.
| JMultiKey<N, key_type> JTOOLS::JMultiPair< N, JKey_t, JValue_t >::multikey_type |
Definition at line 38 of file JMultiPair.hh.
|
inline |
Default constructor.
Definition at line 44 of file JMultiPair.hh.
|
inline |
Constructor.
The primary key is inserted at the start of the secondary keys.
| __first | primary key |
| __second | secondary keys and value |
Definition at line 57 of file JMultiPair.hh.
|
inline |
Constructor.
The secondary key is appended to the end of the primary keys.
| __first | primary keys and value |
| __second | secondary key |
Definition at line 71 of file JMultiPair.hh.
|
inline |
Constructor.
| key | multidimensional key |
| value | value |
Definition at line 84 of file JMultiPair.hh.
|
inline |
Get multidimensional key.
Definition at line 96 of file JMultiPair.hh.
|
inline |
|
inline |
| key_type JTOOLS::JMultiPair< N, JKey_t, JValue_t >::first |
Definition at line 124 of file JMultiPair.hh.
| mapped_type JTOOLS::JMultiPair< N, JKey_t, JValue_t >::second |
Definition at line 125 of file JMultiPair.hh.