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

#include "llvm/ADT/IndexedMap.h"

Inheritance diagram for llvm::IndexedMap< T, ToIndexT >:
Inheritance graph
[legend]

Public Member Functions

 IndexedMap ()
 
 IndexedMap (const T &val)
 
StorageT::reference operator[] (IndexT n)
 
StorageT::const_reference operator[] (IndexT n) const
 
void reserve (typename StorageT::size_type s)
 
void resize (typename StorageT::size_type s)
 
void clear ()
 
void grow (IndexT n)
 
bool inBounds (IndexT n) const
 
StorageT::size_type size () const
 

Detailed Description

template<typename T, typename ToIndexT = identity<unsigned>>
class llvm::IndexedMap< T, ToIndexT >

Definition at line 31 of file IndexedMap.h.

Constructor & Destructor Documentation

◆ IndexedMap() [1/2]

template<typename T , typename ToIndexT = identity<unsigned>>
llvm::IndexedMap< T, ToIndexT >::IndexedMap ( )
inline

Definition at line 43 of file IndexedMap.h.

◆ IndexedMap() [2/2]

template<typename T , typename ToIndexT = identity<unsigned>>
llvm::IndexedMap< T, ToIndexT >::IndexedMap ( const T val)
inlineexplicit

Definition at line 45 of file IndexedMap.h.

Member Function Documentation

◆ clear()

template<typename T , typename ToIndexT = identity<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::clear ( )
inline

◆ grow()

template<typename T , typename ToIndexT = identity<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::grow ( IndexT  n)
inline

◆ inBounds()

template<typename T , typename ToIndexT = identity<unsigned>>
bool llvm::IndexedMap< T, ToIndexT >::inBounds ( IndexT  n) const
inline

◆ operator[]() [1/2]

template<typename T , typename ToIndexT = identity<unsigned>>
StorageT::reference llvm::IndexedMap< T, ToIndexT >::operator[] ( IndexT  n)
inline

Definition at line 47 of file IndexedMap.h.

References assert(), and llvm::SmallVectorBase< Size_T >::size().

◆ operator[]() [2/2]

template<typename T , typename ToIndexT = identity<unsigned>>
StorageT::const_reference llvm::IndexedMap< T, ToIndexT >::operator[] ( IndexT  n) const
inline

Definition at line 52 of file IndexedMap.h.

References assert(), and llvm::SmallVectorBase< Size_T >::size().

◆ reserve()

template<typename T , typename ToIndexT = identity<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::reserve ( typename StorageT::size_type  s)
inline

Definition at line 57 of file IndexedMap.h.

References llvm::SmallVectorImpl< T >::reserve().

◆ resize()

template<typename T , typename ToIndexT = identity<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::resize ( typename StorageT::size_type  s)
inline

◆ size()

template<typename T , typename ToIndexT = identity<unsigned>>
StorageT::size_type llvm::IndexedMap< T, ToIndexT >::size ( ) const
inline

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