Jpp
15.0.1-rc.2-highQE
the software that should make you happy
|
Two-dimensional key. More...
#include <JMultiKey.hh>
Public Types | |
typedef JKey_t | key_type |
typedef JMultiKey< 1, JKey_t > | mapped_type |
typedef std::pair< key_type, mapped_type > | pair |
Public Member Functions | |
JMultiKey () | |
Default constructor. More... | |
JMultiKey (typename JClass< mapped_type >::argument_type __first, typename JClass< key_type >::argument_type __second) | |
Constructor. More... | |
JMultiKey (typename JClass< key_type >::argument_type __first, typename JClass< mapped_type >::argument_type __second) | |
Constructor. More... | |
JMultiKey (typename JArgument< 2, JKey_t >::argument_type key) | |
Copy constructor. More... | |
bool | less (const JMultiKey< 2, JKey_t > &key) const |
Less than method. More... | |
double | getLengthSquared () const |
Get length squared. More... | |
double | getLength () const |
Get length. More... | |
JMultiKey< 1, JKey_t > | front () const |
Get frontend key. More... | |
key_type | back () const |
Get backend key. More... | |
Friends | |
std::istream & | operator>> (std::istream &in, JMultiKey< 2, JKey_t > &key) |
Read key from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JMultiKey< 2, JKey_t > &key) |
Write key to output. More... | |
Two-dimensional key.
Definition at line 220 of file JMultiKey.hh.
typedef JKey_t JTOOLS::JMultiKey< 2, JKey_t >::key_type |
Definition at line 226 of file JMultiKey.hh.
typedef JMultiKey<1, JKey_t> JTOOLS::JMultiKey< 2, JKey_t >::mapped_type |
Definition at line 227 of file JMultiKey.hh.
typedef std::pair<key_type, mapped_type> JTOOLS::JMultiKey< 2, JKey_t >::pair |
Definition at line 228 of file JMultiKey.hh.
|
inline |
Default constructor.
Definition at line 234 of file JMultiKey.hh.
|
inline |
Constructor.
The secondary key is appended to the end of the primary key.
__first | primary key |
__second | secondary key |
Definition at line 246 of file JMultiKey.hh.
|
inline |
Constructor.
The primary key is inserted at the start of the secondary key.
__first | primary key |
__second | secondary key |
Definition at line 259 of file JMultiKey.hh.
|
inline |
Copy constructor.
key | key |
Definition at line 270 of file JMultiKey.hh.
|
inline |
Less than method.
key | key |
Definition at line 281 of file JMultiKey.hh.
|
inline |
Get length squared.
Definition at line 295 of file JMultiKey.hh.
|
inline |
Get length.
Definition at line 306 of file JMultiKey.hh.
|
inline |
Get frontend key.
Definition at line 317 of file JMultiKey.hh.
|
inline |
|
friend |
Read key from input.
in | input stream |
key | key |
Definition at line 341 of file JMultiKey.hh.
|
friend |
Write key to output.
out | output stream |
key | key |
Definition at line 357 of file JMultiKey.hh.