The ObjectHistoryID class combines a history ID and an object ID into a single object.
It is primarily used in collections where the included objects may be from different histories.
#include <ObjectHistoryID.h>
Public Member Functions | |
| ObjectHistoryID () | |
| clang will give this error if =default is used here: default initialization of an object of const type requires a user-provided default constructor. | |
| ObjectHistoryID (size_t nHistory, size_t nObject) | |
| bool | operator< (WSM::ObjectHistoryID const &r) const |
| Primarily for putting the objects in std::map collections. | |
| bool | operator== (WSM::ObjectHistoryID const &r) const |
| bool | operator!= (WSM::ObjectHistoryID const &r) const |
| operator bool () const | |
| bool | IsValid () const |
| IsValid function. | |
Public Attributes | |
| size_t | m_nHistory = WSM::INVALID_ID |
| size_t | m_nObject = WSM::INVALID_ID |
|
inline |
clang will give this error if =default is used here: default initialization of an object of const type requires a user-provided default constructor.
This requirement is a standard defect (DR 253) in that it does not consider that member initializers can allow a compiler generated default constructor to fully initialize a POD class. GCC and MSVC behave as if this DR has already been resolved.
|
inline |
|
inline |
IsValid function.
|
inlineexplicit |
|
inline |
|
inline |
Primarily for putting the objects in std::map collections.
|
inline |
| size_t WSM::ObjectHistoryID::m_nHistory = WSM::INVALID_ID |
| size_t WSM::ObjectHistoryID::m_nObject = WSM::INVALID_ID |