sun::abi::NominalIdentity

sun::abi::NominalIdentity

class · Source (opens in a new tab)

class sun::abi::NominalIdentity

Identifies a declaration across revisions of an explicitly named library.

Equality identifies a candidate correspondence, not ABI compatibility. PortableDeclarationKey continues to identify exact code and linker symbols.

Public Functions

NominalIdentity

public · function · Source (opens in a new tab)

sun::abi::NominalIdentity::NominalIdentity(const std::string &library, NominalKind kind, const std::vector< std::string > &path)

Creates an identity from a library namespace and an ordered declaration path, including enclosing modules/types.

Empty names and paths are rejected. The caller supplies a persistent library identity, never a version, source filename, artifact digest, or module name inferred from a candidate bundle.

Related: NominalKind

encoding

public · function · Source (opens in a new tab)

const std::string & sun::abi::NominalIdentity::encoding() const

Returns the canonical experimental identity, independent of code bytes.

operator==

public · function · Source (opens in a new tab)

bool sun::abi::NominalIdentity::operator==(const NominalIdentity &) const =default

Reports the same nominal origin without authorizing a replacement.

Related: NominalIdentity

Private Fields

encoded_

private · variable · Source (opens in a new tab)

std::string sun::abi::NominalIdentity::encoded_

No documentation comment.