|
Jpp 21.0.0-rc.1
the software that should make you happy
|
One-dimensional key. More...
#include <JMultiKey.hh>
Public Types | |
| typedef JKey_t | key_type |
| typedef JMultiKey< 0, key_type > | mapped_type |
| typedef std::array< key_type, 1 > | array_type |
| typedef std::conditional< std::is_const< key_type >::value, typenamestd::remove_const< key_type >::type, typenamestd::add_const< key_type >::type >::type | U |
Public Member Functions | |
| JMultiKey () | |
| Default constructor. | |
| JMultiKey (typename JClass< mapped_type >::argument_type first, typename JClass< key_type > ::argument_type second) | |
| Append onstructor. | |
| JMultiKey (typename JClass< key_type > ::argument_type first, typename JClass< mapped_type >::argument_type second) | |
| Insert constructor. | |
| JMultiKey (const JMultiKey &first, typename JClass< key_type >::argument_type second) | |
| Shift constructor. | |
| JMultiKey (typename JClass< key_type >::argument_type first) | |
| Constructor. | |
| JMultiKey (const JMultiKey< 1, U > &key) | |
| Copy constructor. | |
| JMultiKey (const std::array< key_type, 1 > &array) | |
| Copy constructor. | |
| operator array_type () const | |
| Type conversion operator. | |
| bool | less (const JMultiKey &key) const |
| Less than method. | |
| key_type | back () const |
| Get backend key. | |
Public Attributes | |
| key_type | first |
Friends | |
| std::istream & | operator>> (std::istream &in, JMultiKey &key) |
| Read key from input. | |
| std::ostream & | operator<< (std::ostream &out, const JMultiKey &key) |
| Write key to output. | |
One-dimensional key.
Definition at line 253 of file JMultiKey.hh.
| JKey_t JTOOLS::JMultiKey< 1, JKey_t >::key_type |
Definition at line 258 of file JMultiKey.hh.
| JMultiKey<0, key_type> JTOOLS::JMultiKey< 1, JKey_t >::mapped_type |
Definition at line 259 of file JMultiKey.hh.
| std::array<key_type, 1> JTOOLS::JMultiKey< 1, JKey_t >::array_type |
Definition at line 260 of file JMultiKey.hh.
| std::conditional<std::is_const<key_type>::value,typenamestd::remove_const<key_type>::type,typenamestd::add_const<key_type>::type>::type JTOOLS::JMultiKey< 1, JKey_t >::U |
Definition at line 264 of file JMultiKey.hh.
|
inline |
|
inline |
Append onstructor.
The secondary key is appended to the end of the primary key.
| first | primary key |
| second | secondary key |
Definition at line 282 of file JMultiKey.hh.
|
inline |
Insert constructor.
The primary key is inserted at the start of the secondary key.
| first | primary key |
| second | secondary key |
Definition at line 295 of file JMultiKey.hh.
|
inline |
Shift constructor.
The first of the primary keys is removed and the secondary key is appended to the end of the remainder of the primary keys.
| first | primary keys |
| second | secondary key |
Definition at line 308 of file JMultiKey.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Less than method.
| key | key |
Definition at line 360 of file JMultiKey.hh.
|
inline |
|
friend |
Read key from input.
| in | input stream |
| key | key |
Definition at line 384 of file JMultiKey.hh.
|
friend |
Write key to output.
| out | output stream |
| key | key |
Definition at line 399 of file JMultiKey.hh.
| key_type JTOOLS::JMultiKey< 1, JKey_t >::first |
Definition at line 409 of file JMultiKey.hh.