FormIt C++ API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
WSM::ObjectHistoryID Class Reference

Description

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
 

Constructor & Destructor Documentation

◆ ObjectHistoryID() [1/2]

WSM::ObjectHistoryID::ObjectHistoryID ( )
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.

◆ ObjectHistoryID() [2/2]

WSM::ObjectHistoryID::ObjectHistoryID ( size_t  nHistory,
size_t  nObject 
)
inline

Member Function Documentation

◆ IsValid()

bool WSM::ObjectHistoryID::IsValid ( ) const
inline

IsValid function.

◆ operator bool()

WSM::ObjectHistoryID::operator bool ( ) const
inlineexplicit

◆ operator!=()

bool WSM::ObjectHistoryID::operator!= ( WSM::ObjectHistoryID const &  r) const
inline

◆ operator<()

bool WSM::ObjectHistoryID::operator< ( WSM::ObjectHistoryID const &  r) const
inline

Primarily for putting the objects in std::map collections.

◆ operator==()

bool WSM::ObjectHistoryID::operator== ( WSM::ObjectHistoryID const &  r) const
inline

Member Data Documentation

◆ m_nHistory

size_t WSM::ObjectHistoryID::m_nHistory = WSM::INVALID_ID

◆ m_nObject

size_t WSM::ObjectHistoryID::m_nObject = WSM::INVALID_ID

The documentation for this class was generated from the following file: