LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::SmallPriorityWorklist< T, N > Class Template Reference

A version of PriorityWorklist that selects small size optimized data structures for the vector and map. More...

#include "llvm/ADT/PriorityWorklist.h"

Inheritance diagram for llvm::SmallPriorityWorklist< T, N >:
Inheritance graph
[legend]
Collaboration diagram for llvm::SmallPriorityWorklist< T, N >:
Collaboration graph
[legend]

Public Member Functions

 SmallPriorityWorklist ()=default
 
- Public Member Functions inherited from llvm::PriorityWorklist< T, SmallVector< T, N >, SmallDenseMap< T, ptrdiff_t > >
 PriorityWorklist ()=default
 Construct an empty PriorityWorklist. More...
 
bool empty () const
 Determine if the PriorityWorklist is empty or not. More...
 
size_type size () const
 Returns the number of elements in the worklist. More...
 
size_type count (const key_type &key) const
 Count the number of elements of a given key in the PriorityWorklist. More...
 
const Tback () const
 Return the last element of the PriorityWorklist. More...
 
bool insert (const T &X)
 Insert a new element into the PriorityWorklist. More...
 
std::enable_if<!std::is_convertible< SequenceT, T >::value >::type insert (SequenceT &&Input)
 Insert a sequence of new elements into the PriorityWorklist. More...
 
void pop_back ()
 Remove the last element of the PriorityWorklist. More...
 
LLVM_NODISCARD T pop_back_val ()
 
bool erase (const T &X)
 Erase an item from the worklist. More...
 
bool erase_if (UnaryPredicate P)
 Erase items from the set vector based on a predicate function. More...
 
void clear ()
 Reverse the items in the PriorityWorklist. More...
 

Additional Inherited Members

- Public Types inherited from llvm::PriorityWorklist< T, SmallVector< T, N >, SmallDenseMap< T, ptrdiff_t > >
using value_type = T
 
using key_type = T
 
using reference = T &
 
using const_reference = const T &
 
using size_type = typename SmallDenseMap< T, ptrdiff_t > ::size_type
 

Detailed Description

template<typename T, unsigned N>
class llvm::SmallPriorityWorklist< T, N >

A version of PriorityWorklist that selects small size optimized data structures for the vector and map.

Definition at line 257 of file PriorityWorklist.h.

Constructor & Destructor Documentation

◆ SmallPriorityWorklist()

template<typename T, unsigned N>
llvm::SmallPriorityWorklist< T, N >::SmallPriorityWorklist ( )
default

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