![]() | InDesign SDK 20.5 |
#include <KeyValuePair.h>
Public Types | |
| typedef object_type | data_type |
| typedef _T1 | key_type |
| typedef _T2 | value_type |
Public Member Functions | |
| KeyValuePair (adobe::move_from< KeyValuePair > other) | |
| KeyValuePair (_T1 __a, _T2 __b) | |
| KeyValuePair (const KeyValuePair &other)=default | |
| KeyValuePair (KeyValuePair &&other)=default | |
| KeyValuePair & | operator= (const KeyValuePair &other)=default |
| KeyValuePair & | operator= (KeyValuePair &&other)=default |
| _T1 & | Key () |
| _T2 & | Value () |
| const _T1 & | Key () const |
| const _T2 & | Value () const |
| void | SetValue (const _T2 &val) |
Public Attributes | |
| _T1 | fKey |
| _T2 | fValue |
Friends | |
| void | swap (KeyValuePair< _T1, _T2 > &a, KeyValuePair< _T1, _T2 > &b) |
KeyValuePair is similar in concept to std::pair. It is a bridge class between the old InDesign collection classes, and the newer stl-like collection classes. It enables some of the old syntax that was used for BTLookup-based classes, which are now obsolete.
| inline |
Move constructor - moves the content of other into this object, leaving 'other' in destructible state
| inline |
Return the "left", or key of the pair.
| inline |
Return the "left", or key of the pair.
| inline |
Reset the value of the pair.
| val | the new value |
| inline |
Return the "right" or value of the pair.
| inline |
Return the "right" or value of the pair.