LLVM  14.0.0git
Public Member Functions | List of all members
llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size > Class Template Reference

#include "llvm/ADT/EnumeratedArray.h"

Public Member Functions

 EnumeratedArray ()=default
 
 EnumeratedArray (ValueType V)
 
const ValueTypeoperator[] (const Enumeration Index) const
 
ValueTypeoperator[] (const Enumeration Index)
 
IndexType size ()
 

Detailed Description

template<typename ValueType, typename Enumeration, Enumeration LargestEnum = Enumeration::Last, typename IndexType = int, IndexType Size = 1 + static_cast<IndexType>(LargestEnum)>
class llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size >

Definition at line 23 of file EnumeratedArray.h.

Constructor & Destructor Documentation

◆ EnumeratedArray() [1/2]

template<typename ValueType , typename Enumeration , Enumeration LargestEnum = Enumeration::Last, typename IndexType = int, IndexType Size = 1 + static_cast<IndexType>(LargestEnum)>
llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size >::EnumeratedArray ( )
default

◆ EnumeratedArray() [2/2]

template<typename ValueType , typename Enumeration , Enumeration LargestEnum = Enumeration::Last, typename IndexType = int, IndexType Size = 1 + static_cast<IndexType>(LargestEnum)>
llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size >::EnumeratedArray ( ValueType  V)
inline

Definition at line 26 of file EnumeratedArray.h.

References llvm::Check::Size, and llvm::BitmaskEnumDetail::Underlying().

Member Function Documentation

◆ operator[]() [1/2]

template<typename ValueType , typename Enumeration , Enumeration LargestEnum = Enumeration::Last, typename IndexType = int, IndexType Size = 1 + static_cast<IndexType>(LargestEnum)>
ValueType& llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size >::operator[] ( const Enumeration  Index)
inline

Definition at line 36 of file EnumeratedArray.h.

References Index, and llvm::Check::Size.

◆ operator[]() [2/2]

template<typename ValueType , typename Enumeration , Enumeration LargestEnum = Enumeration::Last, typename IndexType = int, IndexType Size = 1 + static_cast<IndexType>(LargestEnum)>
const ValueType& llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size >::operator[] ( const Enumeration  Index) const
inline

◆ size()

template<typename ValueType , typename Enumeration , Enumeration LargestEnum = Enumeration::Last, typename IndexType = int, IndexType Size = 1 + static_cast<IndexType>(LargestEnum)>
IndexType llvm::EnumeratedArray< ValueType, Enumeration, LargestEnum, IndexType, Size >::size ( )
inline

Definition at line 41 of file EnumeratedArray.h.

References llvm::Check::Size.


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