libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Identity Struct Reference

Represents the identity of an indirect object. More...

#include <art/paperback/types.hxx>

Public Member Functions

 Identity ()
 Constructor.
 
 Identity (Index index, Generation generation)
 Constructor.
 
bool operator== (Identity const &other) const
 Compare this identity with another.
 
bool operator!= (Identity const &other) const
 Compare this identity with another.
 
bool operator< (Identity const &other) const
 Compare this identity with another.
 

Public Attributes

Index index {}
 
Generation generation {}
 

Detailed Description

Represents the identity of an indirect object.

Constructor & Destructor Documentation

◆ Identity() [1/2]

Art::Paperback::Identity::Identity ( )
inline

Constructor.

This constructor creates an identity with index 0 and generation 0.

◆ Identity() [2/2]

Art::Paperback::Identity::Identity ( Index index,
Generation generation )
inline

Constructor.

Parameters
indexThe index of the identity.
generationThe generation of the identity.

Member Function Documentation

◆ operator==()

bool Art::Paperback::Identity::operator== ( Identity const & other) const
inline

Compare this identity with another.

Parameters
otherThe identity to compare with.

◆ operator!=()

bool Art::Paperback::Identity::operator!= ( Identity const & other) const
inline

Compare this identity with another.

Parameters
otherThe identity to compare with.

◆ operator<()

bool Art::Paperback::Identity::operator< ( Identity const & other) const
inline

Compare this identity with another.