LLDB  mainline
Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
lldb_private::UniqueCStringMap< T > Class Template Reference

#include <UniqueCStringMap.h>

Inheritance diagram for lldb_private::UniqueCStringMap< T >:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::UniqueCStringMap< T >:
Collaboration graph
[legend]

Classes

struct  Entry
 

Public Member Functions

void Append (ConstString unique_cstr, const T &value)
 
void Append (const Entry &e)
 
void Clear ()
 
void Insert (ConstString unique_cstr, const T &value)
 
void Insert (const Entry &e)
 
bool GetValueAtIndex (uint32_t idx, T &value) const
 
ConstString GetCStringAtIndexUnchecked (uint32_t idx) const
 
GetValueAtIndexUnchecked (uint32_t idx) const
 
const T & GetValueRefAtIndexUnchecked (uint32_t idx) const
 
ConstString GetCStringAtIndex (uint32_t idx) const
 
Find (ConstString unique_cstr, T fail_value) const
 
const EntryFindFirstValueForName (ConstString unique_cstr) const
 
const EntryFindNextValueForName (const Entry *entry_ptr) const
 
size_t GetValues (ConstString unique_cstr, std::vector< T > &values) const
 
size_t GetValues (const RegularExpression &regex, std::vector< T > &values) const
 
size_t GetSize () const
 
bool IsEmpty () const
 
void Reserve (size_t n)
 
void Sort ()
 
void SizeToFit ()
 
size_t Erase (ConstString unique_cstr)
 

Protected Types

typedef std::vector< Entrycollection
 
typedef collection::iterator iterator
 
typedef collection::const_iterator const_iterator
 

Protected Attributes

collection m_map
 

Detailed Description

template<typename T>
class lldb_private::UniqueCStringMap< T >

Definition at line 26 of file UniqueCStringMap.h.

Member Typedef Documentation

◆ collection

template<typename T>
typedef std::vector<Entry> lldb_private::UniqueCStringMap< T >::collection
protected

Definition at line 233 of file UniqueCStringMap.h.

◆ const_iterator

template<typename T>
typedef collection::const_iterator lldb_private::UniqueCStringMap< T >::const_iterator
protected

Definition at line 235 of file UniqueCStringMap.h.

◆ iterator

template<typename T>
typedef collection::iterator lldb_private::UniqueCStringMap< T >::iterator
protected

Definition at line 234 of file UniqueCStringMap.h.

Member Function Documentation

◆ Append() [1/2]

template<typename T>
void lldb_private::UniqueCStringMap< T >::Append ( ConstString  unique_cstr,
const T &  value 
)
inline

◆ Append() [2/2]

template<typename T>
void lldb_private::UniqueCStringMap< T >::Append ( const Entry e)
inline

Definition at line 52 of file UniqueCStringMap.h.

◆ Clear()

template<typename T>
void lldb_private::UniqueCStringMap< T >::Clear ( )
inline

◆ Erase()

template<typename T>
size_t lldb_private::UniqueCStringMap< T >::Erase ( ConstString  unique_cstr)
inline

Definition at line 211 of file UniqueCStringMap.h.

◆ Find()

template<typename T>
T lldb_private::UniqueCStringMap< T >::Find ( ConstString  unique_cstr,
fail_value 
) const
inline

◆ FindFirstValueForName()

template<typename T>
const Entry* lldb_private::UniqueCStringMap< T >::FindFirstValueForName ( ConstString  unique_cstr) const
inline

◆ FindNextValueForName()

template<typename T>
const Entry* lldb_private::UniqueCStringMap< T >::FindNextValueForName ( const Entry entry_ptr) const
inline

◆ GetCStringAtIndex()

template<typename T>
ConstString lldb_private::UniqueCStringMap< T >::GetCStringAtIndex ( uint32_t  idx) const
inline

◆ GetCStringAtIndexUnchecked()

template<typename T>
ConstString lldb_private::UniqueCStringMap< T >::GetCStringAtIndexUnchecked ( uint32_t  idx) const
inline

Definition at line 79 of file UniqueCStringMap.h.

Referenced by NameToDIE::Append().

◆ GetSize()

template<typename T>
size_t lldb_private::UniqueCStringMap< T >::GetSize ( ) const
inline

◆ GetValueAtIndex()

template<typename T>
bool lldb_private::UniqueCStringMap< T >::GetValueAtIndex ( uint32_t  idx,
T &  value 
) const
inline

Definition at line 71 of file UniqueCStringMap.h.

◆ GetValueAtIndexUnchecked()

template<typename T>
T lldb_private::UniqueCStringMap< T >::GetValueAtIndexUnchecked ( uint32_t  idx) const
inline

◆ GetValueRefAtIndexUnchecked()

template<typename T>
const T& lldb_private::UniqueCStringMap< T >::GetValueRefAtIndexUnchecked ( uint32_t  idx) const
inline

Definition at line 89 of file UniqueCStringMap.h.

◆ GetValues() [1/2]

template<typename T>
size_t lldb_private::UniqueCStringMap< T >::GetValues ( ConstString  unique_cstr,
std::vector< T > &  values 
) const
inline

◆ GetValues() [2/2]

template<typename T>
size_t lldb_private::UniqueCStringMap< T >::GetValues ( const RegularExpression regex,
std::vector< T > &  values 
) const
inline

Definition at line 163 of file UniqueCStringMap.h.

◆ Insert() [1/2]

template<typename T>
void lldb_private::UniqueCStringMap< T >::Insert ( ConstString  unique_cstr,
const T &  value 
)
inline

Definition at line 58 of file UniqueCStringMap.h.

◆ Insert() [2/2]

template<typename T>
void lldb_private::UniqueCStringMap< T >::Insert ( const Entry e)
inline

Definition at line 63 of file UniqueCStringMap.h.

◆ IsEmpty()

template<typename T>
bool lldb_private::UniqueCStringMap< T >::IsEmpty ( ) const
inline

◆ Reserve()

template<typename T>
void lldb_private::UniqueCStringMap< T >::Reserve ( size_t  n)
inline

Definition at line 186 of file UniqueCStringMap.h.

Referenced by lldb_private::Symtab::InitNameIndexes().

◆ SizeToFit()

template<typename T>
void lldb_private::UniqueCStringMap< T >::SizeToFit ( )
inline

◆ Sort()

template<typename T>
void lldb_private::UniqueCStringMap< T >::Sort ( )
inline

Member Data Documentation

◆ m_map

template<typename T>
collection lldb_private::UniqueCStringMap< T >::m_map
protected

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