LLDB mainline
lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType > Class Template Reference

#include <ThreadSafeDenseSet.h>

Public Types

typedef llvm::DenseSet< _ElementType > LLVMSetType

Public Member Functions

 ThreadSafeDenseSet (unsigned set_initial_capacity=0)
void Insert (_ElementType e)
void Erase (_ElementType e)
bool Lookup (_ElementType e)
void Clear ()

Protected Attributes

LLVMSetType m_set
_MutexType m_mutex

Detailed Description

template<typename _ElementType, typename _MutexType = std::mutex>
class lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >

Definition at line 21 of file ThreadSafeDenseSet.h.

Member Typedef Documentation

◆ LLVMSetType

template<typename _ElementType, typename _MutexType = std::mutex>
typedef llvm::DenseSet<_ElementType> lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::LLVMSetType

Definition at line 23 of file ThreadSafeDenseSet.h.

Constructor & Destructor Documentation

◆ ThreadSafeDenseSet()

template<typename _ElementType, typename _MutexType = std::mutex>
lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::ThreadSafeDenseSet ( unsigned set_initial_capacity = 0)
inline

Definition at line 25 of file ThreadSafeDenseSet.h.

References m_mutex, and m_set.

Member Function Documentation

◆ Clear()

template<typename _ElementType, typename _MutexType = std::mutex>
void lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::Clear ( )
inline

Definition at line 43 of file ThreadSafeDenseSet.h.

References m_mutex, and m_set.

◆ Erase()

template<typename _ElementType, typename _MutexType = std::mutex>
void lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::Erase ( _ElementType e)
inline

Definition at line 33 of file ThreadSafeDenseSet.h.

References m_mutex, and m_set.

◆ Insert()

template<typename _ElementType, typename _MutexType = std::mutex>
void lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::Insert ( _ElementType e)
inline

Definition at line 28 of file ThreadSafeDenseSet.h.

References m_mutex, and m_set.

◆ Lookup()

template<typename _ElementType, typename _MutexType = std::mutex>
bool lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::Lookup ( _ElementType e)
inline

Definition at line 38 of file ThreadSafeDenseSet.h.

References m_mutex, and m_set.

Member Data Documentation

◆ m_mutex

template<typename _ElementType, typename _MutexType = std::mutex>
_MutexType lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::m_mutex
protected

Definition at line 50 of file ThreadSafeDenseSet.h.

Referenced by Clear(), Erase(), Insert(), Lookup(), and ThreadSafeDenseSet().

◆ m_set

template<typename _ElementType, typename _MutexType = std::mutex>
LLVMSetType lldb_private::ThreadSafeDenseSet< _ElementType, _MutexType >::m_set
protected

Definition at line 49 of file ThreadSafeDenseSet.h.

Referenced by Clear(), Erase(), Insert(), Lookup(), and ThreadSafeDenseSet().


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