clang 22.0.0git
Public Member Functions | Public Attributes | List of all members
clang::lifetimes::internal::ID< Tag > Struct Template Reference

A generic, type-safe wrapper for an ID, distinguished by its Tag type. More...

#include "clang/Analysis/Analyses/LifetimeSafety.h"

Inheritance diagram for clang::lifetimes::internal::ID< Tag >:
[legend]

Public Member Functions

bool operator== (const ID< Tag > &Other) const
 
bool operator!= (const ID< Tag > &Other) const
 
bool operator< (const ID< Tag > &Other) const
 
ID< Tag > operator++ (int)
 
void Profile (llvm::FoldingSetNodeID &IDBuilder) const
 

Public Attributes

uint32_t Value = 0
 

Detailed Description

template<typename Tag>
struct clang::lifetimes::internal::ID< Tag >

A generic, type-safe wrapper for an ID, distinguished by its Tag type.

Used for giving ID to loans and origins.

Definition at line 62 of file LifetimeSafety.h.

Member Function Documentation

◆ operator!=()

template<typename Tag >
bool clang::lifetimes::internal::ID< Tag >::operator!= ( const ID< Tag > &  Other) const
inline

Definition at line 66 of file LifetimeSafety.h.

References clang::Other.

◆ operator++()

template<typename Tag >
ID< Tag > clang::lifetimes::internal::ID< Tag >::operator++ ( int  )
inline

Definition at line 68 of file LifetimeSafety.h.

References clang::lifetimes::internal::ID< Tag >::Value.

◆ operator<()

template<typename Tag >
bool clang::lifetimes::internal::ID< Tag >::operator< ( const ID< Tag > &  Other) const
inline

Definition at line 67 of file LifetimeSafety.h.

References clang::Other.

◆ operator==()

template<typename Tag >
bool clang::lifetimes::internal::ID< Tag >::operator== ( const ID< Tag > &  Other) const
inline

Definition at line 65 of file LifetimeSafety.h.

References clang::Other.

◆ Profile()

template<typename Tag >
void clang::lifetimes::internal::ID< Tag >::Profile ( llvm::FoldingSetNodeID< Tag > &  IDBuilder) const
inline

Definition at line 73 of file LifetimeSafety.h.

Member Data Documentation

◆ Value

template<typename Tag >
uint32_t clang::lifetimes::internal::ID< Tag >::Value = 0

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