LLVM 20.0.0git
Public Member Functions | List of all members
llvm::NumberedValues< T > Class Template Reference

Mapping from value ID to value, which also remembers what the next unused ID is. More...

#include "llvm/AsmParser/NumberedValues.h"

Inheritance diagram for llvm::NumberedValues< T >:
Inheritance graph
[legend]

Public Member Functions

unsigned getNext () const
 
T get (unsigned ID) const
 
void add (unsigned ID, T V)
 

Detailed Description

template<class T>
class llvm::NumberedValues< T >

Mapping from value ID to value, which also remembers what the next unused ID is.

Definition at line 18 of file NumberedValues.h.

Member Function Documentation

◆ add()

template<class T >
void llvm::NumberedValues< T >::add ( unsigned  ID,
T  V 
)
inline

◆ get()

template<class T >
T llvm::NumberedValues< T >::get ( unsigned  ID) const
inline

◆ getNext()

template<class T >
unsigned llvm::NumberedValues< T >::getNext ( ) const
inline

Definition at line 23 of file NumberedValues.h.


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