LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::repro::ObjectToIndex Class Reference

Maps an object to an index for serialization. More...

#include <ReproducerInstrumentation.h>

Collaboration diagram for lldb_private::repro::ObjectToIndex:
Collaboration graph
[legend]

Public Member Functions

template<typename T >
unsigned GetIndexForObject (T *t)
 

Private Member Functions

unsigned GetIndexForObjectImpl (const void *object)
 

Private Attributes

llvm::DenseMap< const void *, unsigned > m_mapping
 

Detailed Description

Maps an object to an index for serialization.

Indices are unique and incremented for every new object.

Indices start at 1 in order to differentiate with an invalid index (0) in the serialized buffer.

Definition at line 571 of file ReproducerInstrumentation.h.

Member Function Documentation

◆ GetIndexForObject()

template<typename T >
unsigned lldb_private::repro::ObjectToIndex::GetIndexForObject ( T *  t)
inline

Definition at line 573 of file ReproducerInstrumentation.h.

◆ GetIndexForObjectImpl()

unsigned ObjectToIndex::GetIndexForObjectImpl ( const void *  object)
private

Member Data Documentation

◆ m_mapping

llvm::DenseMap<const void *, unsigned> lldb_private::repro::ObjectToIndex::m_mapping
private

Definition at line 580 of file ReproducerInstrumentation.h.


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