A key class for MetaCodes to be used in associative containers. More...
#include <metacodekey.h>
Public Types | |
typedef Boole( | DeviceCompare) (const MetaCode &First, const MetaCode &Second) |
Convenience typedef for the compare method to be used by this key. | |
Public Member Functions | |
MetaCodeKey (const MetaCode &Code) | |
Class constructor. More... | |
MetaCodeKey (const MetaCodeKey &Other) | |
Copy constructor. More... | |
~MetaCodeKey () | |
Class destructor. | |
const MetaCode & | GetKeyData () const |
Gets the MetaCode this object is using for sorting. More... | |
Boole | operator< (const MetaCodeKey &Other) const |
Less-than operator. More... | |
Protected Attributes | |
DeviceCompare * | Compare |
The compare method being used for this key. More... | |
const MetaCode | MCode |
The metacode being used as the compare object. More... | |
A key class for MetaCodes to be used in associative containers.
Definition at line 56 of file metacodekey.h.
Mezzanine::Input::MetaCodeKey::MetaCodeKey | ( | const MetaCode & | Code | ) |
Class constructor.
Code | The MetaCode this key is to use for sorting. |
Definition at line 109 of file metacodekey.cpp.
Mezzanine::Input::MetaCodeKey::MetaCodeKey | ( | const MetaCodeKey & | Other | ) |
Copy constructor.
Other | The other MetaCodeKey to copy. |
Definition at line 126 of file metacodekey.cpp.
const MetaCode & Mezzanine::Input::MetaCodeKey::GetKeyData | ( | ) | const |
Gets the MetaCode this object is using for sorting.
Definition at line 137 of file metacodekey.cpp.
Boole Mezzanine::Input::MetaCodeKey::operator< | ( | const MetaCodeKey & | Other | ) | const |
Less-than operator.
Other | The other key to compare against. |
Definition at line 140 of file metacodekey.cpp.
|
protected |
The compare method being used for this key.
Definition at line 67 of file metacodekey.h.
|
protected |
The metacode being used as the compare object.
Definition at line 64 of file metacodekey.h.