LLVM  15.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 25 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 28 of file EnumeratedArray.h.

References 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 38 of file EnumeratedArray.h.

◆ 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

Definition at line 33 of file EnumeratedArray.h.

References assert(), and llvm::BitmaskEnumDetail::Underlying().

◆ 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 43 of file EnumeratedArray.h.


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