LLVM  8.0.1
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 30 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 42 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 44 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 46 of file IndexedMap.h.

◆ 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 51 of file IndexedMap.h.

◆ reserve()

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

Definition at line 56 of file IndexedMap.h.

◆ 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: