InternedIdPtr Class Reference

#include <datatypelib.h>

Detailed Description

InternedIdPtr is layout-compatible with InternedId and can be used for performance reasons instead of InternedId when there's no need to hold a strong reference to the internal Id. You have to make sure that the strong reference is held elsewhere throughout the lifetime of the InternedIdPtr.

InternedIdPtr can be passed by value to and from functions with the same efficiency as a raw pointer.

Public Member Functions

Bool IsPopulated () const
 
Bool IsEmpty () const
 
Bool operator== (InternedIdPtr other) const
 
Bool operator!= (InternedIdPtr other) const
 
Bool operator< (InternedIdPtr other) const
 
 MAXON_OPERATOR_INEQUALITY (InternedIdPtr)
 
COMPARERESULT Compare (InternedIdPtr other) const
 
HashInt GetHashCode () const
 
const UniqueHashGetUniqueHashCode () const
 

Public Attributes

const Id_id
 

Member Function Documentation

◆ IsPopulated()

Bool IsPopulated ( ) const

◆ IsEmpty()

Bool IsEmpty ( ) const

◆ operator==()

Bool operator== ( InternedIdPtr  other) const

◆ operator!=()

Bool operator!= ( InternedIdPtr  other) const

◆ operator<()

Bool operator< ( InternedIdPtr  other) const

◆ MAXON_OPERATOR_INEQUALITY()

MAXON_OPERATOR_INEQUALITY ( InternedIdPtr  )

◆ Compare()

COMPARERESULT Compare ( InternedIdPtr  other) const

◆ GetHashCode()

HashInt GetHashCode ( ) const

◆ GetUniqueHashCode()

const UniqueHash& GetUniqueHashCode ( ) const

Member Data Documentation

◆ _id

const Id* _id