LLVM 22.0.0git
llvm::IndexedMap< T, ToIndexT > Class Template Reference

#include "llvm/ADT/IndexedMap.h"

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

Public Member Functions

 IndexedMap ()=default
 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 = detail::IdentityIndex<unsigned>>
class llvm::IndexedMap< T, ToIndexT >

Definition at line 39 of file IndexedMap.h.

Constructor & Destructor Documentation

◆ IndexedMap() [1/2]

template<typename T, typename ToIndexT = detail::IdentityIndex<unsigned>>
llvm::IndexedMap< T, ToIndexT >::IndexedMap ( )
default

◆ IndexedMap() [2/2]

template<typename T, typename ToIndexT = detail::IdentityIndex<unsigned>>
llvm::IndexedMap< T, ToIndexT >::IndexedMap ( const T & Val)
inlineexplicit

Definition at line 53 of file IndexedMap.h.

Member Function Documentation

◆ clear()

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

Definition at line 69 of file IndexedMap.h.

◆ grow()

template<typename T, typename ToIndexT = detail::IdentityIndex<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::grow ( IndexT N)
inline

Definition at line 71 of file IndexedMap.h.

◆ inBounds()

template<typename T, typename ToIndexT = detail::IdentityIndex<unsigned>>
bool llvm::IndexedMap< T, ToIndexT >::inBounds ( IndexT N) const
inline

Definition at line 77 of file IndexedMap.h.

◆ operator[]() [1/2]

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

Definition at line 55 of file IndexedMap.h.

◆ operator[]() [2/2]

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

Definition at line 60 of file IndexedMap.h.

◆ reserve()

template<typename T, typename ToIndexT = detail::IdentityIndex<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::reserve ( typename StorageT::size_type S)
inline

Definition at line 65 of file IndexedMap.h.

◆ resize()

template<typename T, typename ToIndexT = detail::IdentityIndex<unsigned>>
void llvm::IndexedMap< T, ToIndexT >::resize ( typename StorageT::size_type S)
inline

◆ size()

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

Definition at line 79 of file IndexedMap.h.


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